From: Robin Dunn Date: Mon, 29 Mar 2004 15:54:00 +0000 (+0000) Subject: if basePath is empty use '.' X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ed5f4c78491d0a9816694f9eab179d397a90027e if basePath is empty use '.' git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/distrib/viewdocs.py b/wxPython/distrib/viewdocs.py index a30faee338..f909d18af6 100755 --- a/wxPython/distrib/viewdocs.py +++ b/wxPython/distrib/viewdocs.py @@ -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):