Skip to content

Commit

Permalink
Merge pull request #14 from msarahan/default_activate
Browse files Browse the repository at this point in the history
add default activation of root env when no env_setup_cmd passed
  • Loading branch information
msarahan committed Oct 29, 2015
2 parents 8890a3b + 7e326ba commit d1cd365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion menuinst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

def install(path, remove=False, root_prefix=None,
target_prefix=sys.prefix, env_name=None,
env_setup_cmd=None):
env_setup_cmd="activate"):
"""
install Menu and shortcuts
Expand Down
2 changes: 1 addition & 1 deletion menuinst/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, menu, shortcut, target_prefix, env_name, env_setup_cmd):
self.shortcut = shortcut
self.prefix = target_prefix
self.env_name = env_name
self.env_setup_cmd = env_setup_cmd
self.env_setup_cmd = env_setup_cmd if env_setup_cmd else "activate %s" % self.prefix

def remove(self):
self.create(remove=True)
Expand Down

0 comments on commit d1cd365

Please sign in to comment.