Commit ef68907c authored by Fred Drake's avatar Fred Drake

Fix obscure bug that caused the source not to be found when installed using

via distutils to a relative path.

(corresponds with ZopeX3-3.0 branch revision 27434)
parent b492d64f
...@@ -52,8 +52,7 @@ def find_source(fn, func): ...@@ -52,8 +52,7 @@ def find_source(fn, func):
def get_source(func): def get_source(func):
"""Less silly interface to find_source""" # Sheesh """Less silly interface to find_source""" # Sheesh
code = func.func_code return find_source(func.func_globals['__file__'], func.func_code)[1]
return find_source(code.co_filename, code)[1]
def create_rmodule(): def create_rmodule():
global rmodule global rmodule
......
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