aboutsummaryrefslogtreecommitdiffstats
path: root/site.py
diff options
context:
space:
mode:
authorStefan H. Holek <stefan@epy.co.at>2012-10-08 13:02:10 +0200
committerStefan H. Holek <stefan@epy.co.at>2012-10-08 13:02:10 +0200
commit7efb0c1885fecfcc7dfdd2955bdeaab5b6549b48 (patch)
treed98298510c29ed1359b91c7814ac0dcc078eff69 /site.py
parentffefa25af237361253ed505a9045ae8b9642ae02 (diff)
downloadexternal_python_setuptools-7efb0c1885fecfcc7dfdd2955bdeaab5b6549b48.tar.gz
external_python_setuptools-7efb0c1885fecfcc7dfdd2955bdeaab5b6549b48.tar.bz2
external_python_setuptools-7efb0c1885fecfcc7dfdd2955bdeaab5b6549b48.zip
Avoid import loop in Python 3.3. Fixes #304.
--HG-- branch : distribute extra : rebase_source : 8ce699d489f708a68338b2417771854174a734e8
Diffstat (limited to 'site.py')
-rwxr-xr-xsite.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/site.py b/site.py
index 80e084b2..a7166f14 100755
--- a/site.py
+++ b/site.py
@@ -1,5 +1,5 @@
def __boot():
- import sys, imp, os, os.path
+ import sys, os, os.path
PYTHONPATH = os.environ.get('PYTHONPATH')
if PYTHONPATH is None or (sys.platform=='win32' and not PYTHONPATH):
PYTHONPATH = []
@@ -23,6 +23,7 @@ def __boot():
break
else:
try:
+ import imp # Avoid import loop in Python >= 3.3
stream, path, descr = imp.find_module('site',[item])
except ImportError:
continue