basePath fix: must be directory name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -32,7 +32,7 @@ from myxml import *
|
|||||||
testWin = None
|
testWin = None
|
||||||
testWinPos = wxDefaultPosition
|
testWinPos = wxDefaultPosition
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
basePath = sys.argv[0]
|
basePath = os.path.dirname(sys.argv[0])
|
||||||
else:
|
else:
|
||||||
basePath = os.path.dirname(__file__)
|
basePath = os.path.dirname(__file__)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user