summaryrefslogtreecommitdiff
blob: be7d32ed3ff29ed54ee6985bf1f8c249cec89dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- 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