Commits

Jannis Leidel  committed 29a4bcf

# HG changeset patch -- Bitbucket.org
# Project Win32 Relocatable
# URL http://bitbucket.org/chradcliffe/win32-relocatable/overview
# User Craig Radcliffe <chradcliffe@gmail.com>
# Date 1277344873 14400
# Node ID c06968aa4e89f9fff541d5fe41630e2acb91a16c
# Parent ffc4ecc9a2e88acce5da09d7b34c688394216282
Added check for win32 and set bin_dir to 'Scripts' to fixup_scripts

  • Participants
  • Parent commits ce3b78b

Comments (0)

Files changed (1)

+Added fix to set the correct bin_dir in fixup_scripts for win32
+
+diff -r 8dd7663d9811 virtualenv.py
+--- a/virtualenv.py	Thu Apr 22 03:15:11 2010 -0500
++++ b/virtualenv.py	Wed Jun 23 21:58:42 2010 -0400
+@@ -939,7 +939,11 @@
+     # 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)
+     for filename in os.listdir(bin_dir):
+         filename = os.path.join(bin_dir, filename)
+         if not os.path.isfile(filename):