We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 991b3da commit de924fdCopy full SHA for de924fd
mongoctl/mongoctl.py
@@ -3310,7 +3310,15 @@ def resolve_path(path):
3310
# expand vars
3311
path = os.path.expandvars(custom_expanduser(path))
3312
# Turn relative paths to absolute
3313
- path = os.path.abspath(path)
+ try:
3314
+ path = os.path.abspath(path)
3315
+ except OSError, e:
3316
+ # handle the case where cwd does not exist
3317
+ if "No such file or directory" in e.message:
3318
+ pass
3319
+ else:
3320
+ raise
3321
+
3322
return path
3323
3324
###############################################################################
0 commit comments