summaryrefslogtreecommitdiff
path: root/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch
blob: 742e3e02ee3c216e1083a8bc87da5058d85c0b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- letters-trans.py.old	2010-04-26 12:13:12.000000000 +0200
+++ letters-trans.py	2010-04-26 12:13:49.000000000 +0200
@@ -39,7 +39,7 @@
 import os,fnmatch,operator,sys,locale
 from CPConstants import ASSETMLROOT
 
-if os.environ['USER'] != 'root':
+if os.environ['LOGNAME'] != 'root':
     print "\nOnly root can use this script, sorry.\n"
     sys.exit(1)
 
@@ -69,7 +69,8 @@
     sys.exit(0)
         
 # get description names from memory assetml, these are the words used by letters.py
-parser = pyassetml.AssetmlParser('childsplay/memory-136x136/memory-136x136.assetml')
+assetmlfile = os.path.join(cwd,'memory-136x136.assetml')
+parser = pyassetml.AssetmlParser(assetmlfile)
 loc = parser.get_locale()# get current locale setting, only the first two chars !!
 wlist_org = parser.find_names((('file','.'),('description',"en")))
 wlist = parser.find_names((('file','.'),('description',loc)))