1. asenchi
  2. virtualenv

Commits

Jannis Leidel  committed 93748f1

Added check for win32 and set bin_dir to 'Scripts' to fixup_scripts. Fix by Craig Radcliffe.

  • Participants
  • Parent commits c7e1a8a
  • Branches trunk

Comments (0)

Files changed (1)

File virtualenv.py

View file
     # This is what we'll put:
     new_shebang = '#!/usr/bin/env python%s' % sys.version[:3]
     activate = "import os; activate_this=os.path.join(os.path.dirname(__file__), 'activate_this.py'); execfile(activate_this, dict(__file__=activate_this)); del os, activate_this"
-    bin_dir = os.path.join(home_dir, 'bin')
+    if sys.platform == 'win32':
+        bin_suffix = 'Scripts'
+    else:
+        bin_suffix = 'bin'
+    bin_dir = os.path.join(home_dir, bin_suffix)
     home_dir, lib_dir, inc_dir, bin_dir = path_locations(home_dir)
     for filename in os.listdir(bin_dir):
         filename = os.path.join(bin_dir, filename)