Comment 2 for bug 381169

Revision history for this message
Stani (stani) wrote :

I've changed it upstream already. Can you please download Phatch with bazaar (bzr branch lp:phatch) and confirm it works?

$ bzr diff -r612
=== modified file 'phatch/core/config.py'
--- phatch/core/config.py 2009-05-26 20:52:32 +0000
+++ phatch/core/config.py 2009-05-28 12:35:42 +0000
@@ -43,7 +43,13 @@
     PHATCH_SHARE_PATH = os.path.join(sys.prefix, "share") #also for win?
     PHATCH_FONTS_PATH = os.path.join(PHATCH_SHARE_PATH,"phatch","fonts")

- if sys.platform[:5] == 'linux':
+ if sys.platform.startswith('win'):
+ sys.stderr.write(
+ 'Sorry your platform is not yet supported.\n' \
+ + 'The instructions for Windows are on the Phatch website.'
+ )
+ sys.exit()
+ else:
         return {
             "PHATCH_IMAGE_PATH" : os.path.join(PHATCH_SHARE_PATH,"phatch","images"),
             "PHATCH_LOCALE_PATH": os.path.join(PHATCH_SHARE_PATH,"locale"),
@@ -51,9 +57,6 @@
             "PHATCH_FONTS_PATH" : PHATCH_FONTS_PATH,
             "PHATCH_ACTIONLISTS_PATH": os.path.join(PHATCH_SHARE_PATH,"phatch","actionlists"),
         }
- else:
- sys.stderr.write('Sorry your platform is not yet supported.\n')
- sys.exit()

 def add_user_paths(config_paths):
     config_paths["USER_PATH"] = USER_PATH