You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff

22 lines
509 B

--- 4stattack.py
+++ 4stattack.py
@@ -28,6 +28,9 @@
images = None
screen = None
+f = os.path.expanduser('~/.4stattackrc')
+if not os.path.exists(f):
+ os.system('cp settings.ini %s' % f)
def playMusic(datadir):
if pygame.mixer.get_init():
@@ -78,7 +81,7 @@
if options.has_key('-ini'):
ini_settings = IniSettings(options['-ini'])
else:
- ini_settings = IniSettings('settings.ini')
+ ini_settings = IniSettings(os.path.expanduser('~/.4stattackrc'))
settings = ini_settings.settings