]> git.saurik.com Git - wxWidgets.git/commitdiff
if basePath is empty use '.'
authorRobin Dunn <robin@alldunn.com>
Mon, 29 Mar 2004 15:54:00 +0000 (15:54 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 29 Mar 2004 15:54:00 +0000 (15:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/distrib/viewdocs.py

index a30faee3388eda08bede3f0d574538b530e0c1eb..f909d18af69015da296daff79ee05411f3b7ecc4 100755 (executable)
@@ -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):