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:
@@ -11,6 +11,9 @@ if __name__ == '__main__':
|
|||||||
basePath = os.path.dirname(sys.argv[0])
|
basePath = os.path.dirname(sys.argv[0])
|
||||||
else:
|
else:
|
||||||
basePath = os.path.dirname(__file__)
|
basePath = os.path.dirname(__file__)
|
||||||
|
if not basePath:
|
||||||
|
basePath = '.'
|
||||||
|
|
||||||
|
|
||||||
# test for write access
|
# test for write access
|
||||||
if os.access(basePath, os.W_OK):
|
if os.access(basePath, os.W_OK):
|
||||||
|
Reference in New Issue
Block a user