From ed5f4c78491d0a9816694f9eab179d397a90027e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 29 Mar 2004 15:54:00 +0000 Subject: [PATCH] if basePath is empty use '.' git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/distrib/viewdocs.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- 2.47.2