summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-02-05 21:58:25 (GMT)
committerJust van Rossum <just@lettererror.com>1999-02-05 21:58:25 (GMT)
commit2aaeb52665fb297b3d65006b8b22eee290f17e7f (patch)
treefcaf6a82756975af4fa3fda5afe632ce8ddff0f2 /Mac
parent14162abf6ef331452d9fb32dc677932eda3ed0fc (diff)
downloadcpython-2aaeb52665fb297b3d65006b8b22eee290f17e7f.zip
cpython-2aaeb52665fb297b3d65006b8b22eee290f17e7f.tar.gz
cpython-2aaeb52665fb297b3d65006b8b22eee290f17e7f.tar.bz2
fixed problem with "reloading" sub-sub-modules -- jvr
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/PyEdit.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py
index 80397a1..01e7ed6 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):