- 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()
I've changed it upstream already. Can you please download Phatch with bazaar (bzr branch lp:phatch) and confirm it works?
$ bzr diff -r612 core/config. py' core/config. py 2009-05-26 20:52:32 +0000 core/config. py 2009-05-28 12:35:42 +0000 SHARE_PATH = os.path. join(sys. prefix, "share") #also for win? FONTS_PATH = os.path. join(PHATCH_ SHARE_PATH, "phatch" ,"fonts" )
=== modified file 'phatch/
--- phatch/
+++ phatch/
@@ -43,7 +43,13 @@
PHATCH_
PHATCH_
- if sys.platform[:5] == 'linux': startswith( 'win'):
" PHATCH_ IMAGE_PATH" : os.path. join(PHATCH_ SHARE_PATH, "phatch" ,"images" ),
" PHATCH_ LOCALE_ PATH": os.path. join(PHATCH_ SHARE_PATH, "locale" ),
" PHATCH_ FONTS_PATH" : PHATCH_FONTS_PATH,
" PHATCH_ ACTIONLISTS_ PATH": os.path. join(PHATCH_ SHARE_PATH, "phatch" ,"actionlists" ), write(' Sorry your platform is not yet supported.\n')
+ if sys.platform.
+ sys.stderr.write(
+ 'Sorry your platform is not yet supported.\n' \
+ + 'The instructions for Windows are on the Phatch website.'
+ )
+ sys.exit()
+ else:
return {
@@ -51,9 +57,6 @@
}
- else:
- sys.stderr.
- sys.exit()
def add_user_ paths(config_ paths): paths[" USER_PATH" ] = USER_PATH
config_