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:
Roman Rolinsky
2002-12-02 20:06:21 +00:00
parent 8f6df1fa78
commit 8f92c81ebd

View File

@@ -32,7 +32,7 @@ from myxml import *
testWin = None
testWinPos = wxDefaultPosition
if __name__ == '__main__':
basePath = sys.argv[0]
basePath = os.path.dirname(sys.argv[0])
else:
basePath = os.path.dirname(__file__)