updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / wuu / wuu_linux.patch
bloba2bd2c3f99b8415b9fdbf363711e17ac1d08c8a3
1 --- WurmCommon.py.old 2009-06-30 18:39:50.000000000 +0300
2 +++ WurmCommon.py 2009-08-15 10:03:48.000000000 +0300
3 @@ -77,6 +77,21 @@
4 print "Unable to create Windows directories: %s" % str(details)
5 raise
7 +# If on Linux
8 +elif sys.platform[:5] == "linux":
9 + try:
10 + userdir = os.getenv("HOME")
11 + supportdir = userdir + "/.wuu"
12 + prefsdir = userdir + "/.wuu"
13 + # create these directories if they don't exist
14 + if not os.path.exists(supportdir):
15 + os.makedirs(supportdir)
16 + if not os.path.exists(prefsdir):
17 + os.makedirs(prefsdir)
18 + except Exception, details:
19 + print "Unable to create Linux directories: %s" % str(details)
20 + raise
22 # If on a Mac then use the preferred directories for Preference files etc
23 elif sys.platform == "darwin":
24 # if running from an .app then relocate the appldir variable to the directory the .app is in