Skip to content

Commit

Permalink
Use realpath to handle symbolic links.
Browse files Browse the repository at this point in the history
This fixes the logic to automatically follow symbolic links present in either path passed into the tool.
  • Loading branch information
benrudolph authored and timabbott committed Sep 16, 2017
1 parent ef13ee2 commit 15f8395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clonevirtualenv.py
Expand Up @@ -300,8 +300,8 @@ def main():
except ValueError:
print("virtualenv-clone {}".format(__version__))
parser.error("not enough arguments given.")
old_dir = os.path.normpath(os.path.abspath(old_dir))
new_dir = os.path.normpath(os.path.abspath(new_dir))
old_dir = os.path.realpath(old_dir)
new_dir = os.path.realpath(new_dir)
loglevel = (logging.WARNING, logging.INFO, logging.DEBUG)[min(2,
options.verbose)]
logging.basicConfig(level=loglevel, format='%(message)s')
Expand Down

0 comments on commit 15f8395

Please sign in to comment.