Skip to content

Commit

Permalink
Fixup handling in stdlib property.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Sep 21, 2015
1 parent 64e72b2 commit db320e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@
'exception': Fore.RED,
}
SITE_PACKAGES_PATH = get_python_lib()
SYS_PREFIX_PATHS = set([
SYS_PREFIX_PATHS = (
sys.prefix,
sys.exec_prefix
])
)


def tryadd(where, src, what):
if hasattr(src, what):
where.add(getattr(src, what))
where += getattr(src, what),


tryadd(SYS_PREFIX_PATHS, sys, 'real_prefix')
Expand All @@ -83,7 +83,6 @@ def tryadd(where, src, what):
tryadd(SYS_PREFIX_PATHS, sys, 'base_exec_prefix')



class Tracer(object):
"""
Trace object.
Expand Down

0 comments on commit db320e1

Please sign in to comment.