Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14162ab commit 2aaeb52Copy full SHA for 2aaeb52
1 file changed
Mac/Tools/IDE/PyEdit.py
@@ -520,13 +520,14 @@ def getenvironment(self):
520
modname = ""
521
while os.path.exists(os.path.join(dir, "__init__.py")):
522
dir, dirname = os.path.split(dir)
523
- modname = modname + dirname + '.'
+ modname = dirname + '.' + modname
524
subname = _filename_as_modname(self.title)
525
if modname:
526
if subname == "__init__":
527
- modname = modname[:-1] # strip trailing period
+ # strip trailing period
528
+ modname = modname[:-1]
529
else:
- modname = modname + subname
530
+ modname = modname + subname
531
532
modname = subname
533
if sys.modules.has_key(modname):
0 commit comments