Created
September 21, 2009 15:44
-
-
Save satyr/190330 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bootstrap.py b/bootstrap.py | |
--- a/bootstrap.py | |
+++ b/bootstrap.py | |
@@ -637,20 +637,20 @@ def install_python(home_dir, lib_dir, in | |
if sys.platform == 'cygwin' and os.path.exists(executable + '.exe'): | |
# Cygwin misreports sys.executable sometimes | |
executable += '.exe' | |
py_executable += '.exe' | |
logger.info('Executable actually exists in %s' % executable) | |
shutil.copyfile(executable, py_executable) | |
make_exe(py_executable) | |
if sys.platform == 'win32' or sys.platform == 'cygwin': | |
- pythonw = os.path.join(os.path.dirname(sys.executable, 'pythonw.exe')) | |
+ pythonw = os.path.join(os.path.dirname(sys.executable), 'pythonw.exe') | |
if os.path.exists(pythonw): | |
logger.info('Also created pythonw.exe') | |
- shutil.copyfile(pythonw, os.path.join(os.path.dirname(py_executable, 'pythonw.exe'))) | |
+ shutil.copyfile(pythonw, os.path.join(os.path.dirname(py_executable), 'pythonw.exe')) | |
if sys.platform == 'darwin': | |
# Make sure we use the the embedded interpreter inside | |
# the framework, even if sys.executable points to | |
# the stub executable in ${sys.prefix}/bin | |
shutil.copy( | |
os.path.join( | |
prefix, 'Resources/Python.app/Contents/MacOS/Python'), | |
py_executable) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment