Skip to content
Permalink
Browse files

Fixed #609 -- when lib-topaz can't be found don't spin CPU forever

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 12, 2013
1 parent d049176 commit 985d1dceb46dc632eac2258d91201dc58b308ba5
Showing with 5 additions and 2 deletions.
  1. +5 −2 topaz/objspace.py
@@ -246,8 +246,11 @@ def setup(self, executable):
# Fallback to a path relative to the compiled location.
lib_path = self.base_lib_path
kernel_path = os.path.join(os.path.join(lib_path, os.path.pardir), "lib-topaz")
while path:
path = rpath.rabspath(os.path.join(path, os.path.pardir))
while True:
par_path = rpath.rabspath(os.path.join(path, os.path.pardir))
if par_path == path:
break
path = par_path
if isdir(os.path.join(path, "lib-ruby")):
lib_path = os.path.join(path, "lib-ruby")
kernel_path = os.path.join(path, "lib-topaz")

0 comments on commit 985d1dc

Please sign in to comment.