Commit 152c6fa2 authored by Ronny Pfannschmidt's avatar Ronny Pfannschmidt

account for the possibility that site.ENABLE_USER_SITE may be False

--HG--
branch : distribute
extra : rebase_source : 4f763cb0a4dd4cddef1df333a4ded2a2728fedcd
parent f87d68ef
...@@ -122,10 +122,9 @@ class easy_install(Command): ...@@ -122,10 +122,9 @@ class easy_install(Command):
create_index = PackageIndex create_index = PackageIndex
def initialize_options(self): def initialize_options(self):
if HAS_USER_SITE: if HAS_USER_SITE and site.ENABLE_USER_SITE:
whereami = os.path.abspath(__file__) whereami = os.path.abspath(__file__)
self.user = (whereami.startswith(site.USER_SITE) self.user = whereami.startswith(site.USER_SITE)
or whereami.startswith(site.USER_BASE))
else: else:
self.user = 0 self.user = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment