[chronojump] Add some fixes with paths in win32



commit 9ddb5b5f8d44f08ee832cf92f71a7198d8a42c0b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Jun 16 23:50:32 2010 +0200

    Add some fixes with paths in win32

 .../chronopic-firmwarecord.in                      |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/chronopic-firmware/chronopic-firmwarecord/chronopic-firmwarecord.in b/chronopic-firmware/chronopic-firmwarecord/chronopic-firmwarecord.in
index 2ddcbc7..ac2f6e5 100755
--- a/chronopic-firmware/chronopic-firmwarecord/chronopic-firmwarecord.in
+++ b/chronopic-firmware/chronopic-firmwarecord/chronopic-firmwarecord.in
@@ -27,9 +27,9 @@ import sys
 import os
 import platform
 
-if platform.version() == 'Windows':
-    LIBDIR = os.path.abspath('..', 'lib')
-    DATADIR = os.path.abspath('..', 'share')
+if platform.system() == 'Windows':
+    LIBDIR = os.path.abspath(os.path.join('..', 'lib'))
+    DATADIR = os.path.abspath(os.path.join('..', 'share'))
     sys.path = ['..'] + sys.path
 else:
     LIBDIR = '@expanded_libdir@'
@@ -193,7 +193,7 @@ class MyFrame(wx.Frame):
        
         #-- Abrir un dialogo de busqueda de ficheros
         filechooser = wx.FileDialog(self, "Load Firmware Hex",
-                                    '%s/chronojump/firmware' % DATADIR, wildcard = "*.hex;*.HEX")
+                                    os.path.join(DATADIR, 'chronojump', 'firmware'), wildcard = "*.hex;*.HEX")
 
         #-- Esperar a que el usuario seleccione el fichero
         opcion = filechooser.ShowModal()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]