Added setproctitle.

This commit is contained in:
Jeremiah Ticket 2019-12-11 04:04:56 -09:00
parent 2b27ce97b7
commit d66af32804

View File

@ -9,6 +9,7 @@ from os import listdir
from os.path import isfile, join from os.path import isfile, join
from inspect import isfunction from inspect import isfunction
from xdg import BaseDirectory from xdg import BaseDirectory
from setproctitle import setproctitle
import pygame import pygame
import pyperclip import pyperclip
import random import random
@ -76,6 +77,7 @@ def initialize_gui(gameTitle):
# Set game's name # Set game's name
global gameName global gameName
gameName = gameTitle gameName = gameTitle
setproctitle(gameTitle)
# start pygame # start pygame
pygame.init() pygame.init()
# start the display (required by the event loop) # start the display (required by the event loop)