X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f93cfdc3631b16562e076350c7219c68e4a66eae..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/distrib/viewdocs.py?ds=sidebyside 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):