We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90d2a89 commit 8209925Copy full SHA for 8209925
1 file changed
pw_multiScriptEditor/scriptEditor.py
@@ -345,7 +345,7 @@ def openSettingsFile(self):
345
self.out.showMessage('>>> Settings folder: %s' % path.replace('\\','/'))
346
347
if os.path.exists(path):
348
- os.startfile(path)
+ self.openFolder(path)
349
else:
350
self.out.showMessage('>>> Not created!')
351
@@ -391,6 +391,14 @@ def findWidget(self):
391
w.show()
392
w.activateWindow()
393
394
+ def openFolder(self, path):
395
+ if os.name == 'nt':
396
+ os.startfile(path)
397
+ elif os.name == 'posix':
398
+ os.system('xdg-open "%s"' % path)
399
+ elif os.name =='os2':
400
+ os.system('open "%s"' % path)
401
+
402
QTextCodec.setCodecForCStrings(QTextCodec.codecForName("UTF-8"))
403
404
if __name__ == '__main__':
0 commit comments