aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-03-22 18:55:59 +0000
committerPJ Eby <distutils-sig@python.org>2005-03-22 18:55:59 +0000
commit5a50fc1e142970cb668b48058fdcd88690991cae (patch)
treea27b476089de93cb2392835cb3e0073813a3b0ed /setuptools/command/bdist_egg.py
parent79a74b06ce3be48b74c3f6b929b76f522fee09cd (diff)
downloadexternal_python_setuptools-5a50fc1e142970cb668b48058fdcd88690991cae.tar.gz
external_python_setuptools-5a50fc1e142970cb668b48058fdcd88690991cae.tar.bz2
external_python_setuptools-5a50fc1e142970cb668b48058fdcd88690991cae.zip
Fix bootstrap loader so extracted files don't have to be on sys.path.
--HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040993
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 7b8ad902..b1913cf6 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -74,11 +74,11 @@ class bdist_egg(Command):
f.write('\n'.join([
"def __bootstrap__():",
" global __bootstrap__, __loader__, __file__",
- " import sys, pkg_resources",
+ " import sys, pkg_resources, imp",
" __file__ = pkg_resources.resource_filename(__name__,%r)"
% resource,
" del __bootstrap__, __loader__",
- " reload(sys.modules[__name__])",
+ " imp.load_dynamic(__name__,__file__)",
"__bootstrap__()",
"" # terminal \n
]))