Merge pull request #1730 from pijyoi/fix_powershell

This commit is contained in:
Ogi Moore 2021-04-21 07:02:28 -07:00 committed by GitHub
commit ec4d613037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -360,15 +360,7 @@ class ExampleLoader(QtGui.QMainWindow):
fn = self.currentFile()
if fn is None:
return
if sys.platform.startswith('win'):
args = [os.P_NOWAIT, sys.executable, '"'+sys.executable+'"', '"' + fn + '"']
else:
args = [os.P_NOWAIT, sys.executable, sys.executable, fn]
if env is None:
os.spawnl(*args)
else:
args.append(env)
os.spawnle(*args)
subprocess.Popen([sys.executable, fn], env=env)
def showFile(self):
fn = self.currentFile()