if basePath is empty use '.'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-03-29 15:54:00 +00:00
parent c3eeb758b7
commit ed5f4c7849

View File

@ -11,6 +11,9 @@ if __name__ == '__main__':
basePath = os.path.dirname(sys.argv[0])
else:
basePath = os.path.dirname(__file__)
if not basePath:
basePath = '.'
# test for write access
if os.access(basePath, os.W_OK):