When getcwd() doesn't exist or raises an exception, don't fail but
fall back to using os.curdir instead; if it is fine, don't use os.curdir at all.
Showing
Please register or sign in to comment
fall back to using os.curdir instead; if it is fine, don't use os.curdir at all.