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 a89eeda commit c81cdf1Copy full SHA for c81cdf1
plugins/Code editor/pyeditor.py
@@ -356,7 +356,7 @@ def runto(self):
356
except ImportError:
357
os.chdir(str(self.path))
358
os.path.join(os.path.expanduser('~'), os.path.expandvars(str(self.path)))
359
- sys.path.insert(0, str(self.path))
+ sys.path.append(str(self.path))
360
exec (script, g)
361
QtGui.QCloseEvent()
362
@@ -369,6 +369,10 @@ def runto(self):
369
370
371
def runtoprob(self):
372
+ try:
373
+ self.path = QtCore.QFileInfo(self.filename).path()
374
+ except AttributeError:
375
+ pass
376
self.path = QtCore.QFileInfo(self.filename).path()
377
g = globals()
378
0 commit comments