Merge branch 'devel'
Merged in set process name
This commit is contained in:
commit
08f06699c8
@ -3,6 +3,6 @@
|
|||||||
Library to make writing audiogames easier.
|
Library to make writing audiogames easier.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
configparser pyxdg pygame pyperclip requests
|
configparser pyxdg pygame pyperclip requests setproctitle
|
||||||
### For mac os X and windows
|
### For mac os X and windows
|
||||||
accessible_output2
|
accessible_output2
|
||||||
|
@ -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
|
||||||
@ -129,6 +130,7 @@ def initialize_gui(gameTitle):
|
|||||||
# Set game's name
|
# Set game's name
|
||||||
global gameName
|
global gameName
|
||||||
gameName = gameTitle
|
gameName = gameTitle
|
||||||
|
setproctitle(str.lower(str.replace(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)
|
||||||
|
Loading…
Reference in New Issue
Block a user