Commit 61908bec authored by Jim Fulton's avatar Jim Fulton

Fixed bug in package_home.

parent ac747bd6
"""Global definitions"""
__version__='$Revision: 1.20 $'[11:-2]
__version__='$Revision: 1.21 $'[11:-2]
import sys, os
from DateTime import DateTime
......@@ -135,7 +135,7 @@ SessionNameName='Principia-Session'
if atof(sys.version[:3]) >= 1.5:
def package_home(globals_dict):
__name__=globals_dict['__name__']
return sys.modules[__name__[:rfind(__name__,'.')]].__path__[0]
return sys.modules[__name__].__path__[0]
else:
# ni
def package_home(globals_dict):
......
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