Skip to content

Commit

Permalink
Fix #482 a different way.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Aug 27, 2007
1 parent e6cc191 commit fe097ee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scipy/weave/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,9 @@ def default_dir():
"""

# Use a cached value for fast return if possible
try:
assert os.path.exists(default_dir.cached_path)
if hasattr(default_dir,"cached_path") and \
os.path.exists(default_dir.cached_path):
return default_dir.cached_path
except AttributeError:
pass
except AssertionError:
pass

python_name = "python%d%d_compiled" % tuple(sys.version_info[:2])
if sys.platform != 'win32':
Expand Down

0 comments on commit fe097ee

Please sign in to comment.