Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 770604 - nsinstall.py should abspath during directory creation to…
Browse files Browse the repository at this point in the history
…o. r=khuey
  • Loading branch information
sunshowers committed Jul 3, 2012
1 parent d1457af commit 72b46b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/nsinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def BadArg(option, opt, value, parser):

# just create one directory?
def maybe_create_dir(dir, mode, try_again):
dir = os.path.abspath(dir)
if os.path.exists(dir):
if not os.path.isdir(dir):
print >> sys.stderr, ('nsinstall: %s is not a directory' % dir)
Expand Down
1 change: 1 addition & 0 deletions js/src/config/nsinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def BadArg(option, opt, value, parser):

# just create one directory?
def maybe_create_dir(dir, mode, try_again):
dir = os.path.abspath(dir)
if os.path.exists(dir):
if not os.path.isdir(dir):
print >> sys.stderr, ('nsinstall: %s is not a directory' % dir)
Expand Down

0 comments on commit 72b46b0

Please sign in to comment.