1 --- WurmCommon.py.old 2009-06-30 18:39:50.000000000 +0300
2 +++ WurmCommon.py 2009-08-15 10:03:48.000000000 +0300
4 print "Unable to create Windows directories: %s" % str(details)
8 +elif sys.platform[:5] == "linux":
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)
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