From: Just van Rossum Date: Fri, 5 Feb 1999 21:58:25 +0000 (+0000) Subject: fixed problem with "reloading" sub-sub-modules -- jvr X-Git-Tag: v1.5.2b2~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2aaeb52665fb297b3d65006b8b22eee290f17e7f;p=python fixed problem with "reloading" sub-sub-modules -- jvr --- diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py index 80397a18ee..01e7ed6add 100644 --- a/Mac/Tools/IDE/PyEdit.py +++ b/Mac/Tools/IDE/PyEdit.py @@ -520,13 +520,14 @@ class Editor(W.Window): modname = "" while os.path.exists(os.path.join(dir, "__init__.py")): dir, dirname = os.path.split(dir) - modname = modname + dirname + '.' + modname = dirname + '.' + modname subname = _filename_as_modname(self.title) if modname: if subname == "__init__": - modname = modname[:-1] # strip trailing period + # strip trailing period + modname = modname[:-1] else: - modname = modname + subname + modname = modname + subname else: modname = subname if sys.modules.has_key(modname):