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.
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.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator