Fix problem with symbolic link ( --> os.path.realpath() )
authorgreg
Fri, 23 Nov 2007 08:47:48 +0100
changeset 318 cef08361bab1
parent 317 f1c472b42327
child 319 4b331759169a
Fix problem with symbolic link ( --> os.path.realpath() )
objdictgen/networkedit.py
objdictgen/objdictedit.py
--- a/objdictgen/networkedit.py	Wed Nov 21 16:30:26 2007 +0100
+++ b/objdictgen/networkedit.py	Fri Nov 23 08:47:48 2007 +0100
@@ -35,7 +35,7 @@
 from commondialogs import *
 from doc_index.DS301_index import *
 
-ScriptDirectory = os.path.split(__file__)[0]
+ScriptDirectory = os.path.split(os.path.realpath(__file__))[0]
 
 try:
     import wx.html
--- a/objdictgen/objdictedit.py	Wed Nov 21 16:30:26 2007 +0100
+++ b/objdictgen/objdictedit.py	Fri Nov 23 08:47:48 2007 +0100
@@ -105,7 +105,7 @@
 except:
     Html_Window = False
 
-ScriptDirectory = os.path.split(__file__)[0]
+ScriptDirectory = os.path.split(os.path.realpath(__file__))[0]
 
 [ID_OBJDICTEDIT, ID_OBJDICTEDITFILEOPENED, 
  ID_OBJDICTEDITHELPBAR,