Skip to content

Commit

Permalink
Use the relative path of the virtualenv in the "creating virtualenv" …
Browse files Browse the repository at this point in the history
…log message. (#176)
  • Loading branch information
theacodes committed Apr 11, 2019
1 parent 5b1e1e3 commit 18b8e06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class VirtualEnv(ProcessEnv):
"""

def __init__(self, location, interpreter=None, reuse_existing=False):
self.location_name = location
self.location = os.path.abspath(location)
self.interpreter = interpreter
self._resolved = None
Expand Down Expand Up @@ -193,7 +194,9 @@ def bin(self):
def create(self):
"""Create the virtualenv."""
if not self._clean_location():
logger.debug("Re-using existing virtualenv at {}.".format(self.location))
logger.debug(
"Re-using existing virtualenv at {}.".format(self.location_name)
)
return False

cmd = [sys.executable, "-m", "virtualenv", self.location]
Expand Down

0 comments on commit 18b8e06

Please sign in to comment.