X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f93cfdc3631b16562e076350c7219c68e4a66eae..64c1effefabacc175cf601ea4118f3b806a1fd65:/wxPython/distrib/viewdocs.py diff --git a/wxPython/distrib/viewdocs.py b/wxPython/distrib/viewdocs.py index a30faee338..01151c1902 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): @@ -19,7 +22,6 @@ if os.access(basePath, os.W_OK): args = ['', '--cache='+basePath, os.path.join(basePath, 'wx.zip'), - os.path.join(basePath, 'ogl.zip'), ] # add any other .zip files found