mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-29 19:10:40 +01:00
Mainwindow: Revert 'sqlitebrowser' QProcess to Popen (run as async).
This commit is contained in:
1 parent
9c5b76e451
commit
3e5ef5d2bc
1 file changed
+2
-16
+2
-16
@@ -39,7 +39,7 @@ from View.about_window import AboutWindow
|
||||
import settings as stg
|
||||
|
||||
import numpy as np
|
||||
from subprocess import run
|
||||
from subprocess import Popen
|
||||
|
||||
import time
|
||||
|
||||
@@ -269,21 +269,7 @@ class Ui_MainWindow(object):
|
||||
cc_kt.exec()
|
||||
|
||||
def db_browser_for_sqlite(self):
|
||||
proc = QtCore.QProcess()
|
||||
if stg.filename_save_as != "":
|
||||
print(f"Set working directory to: '{stg.filename_save_as}'")
|
||||
proc.setWorkingDirectory(
|
||||
os.path.dirname(stg.filename_save_as)
|
||||
)
|
||||
|
||||
proc.start("sqlitebrowser", [])
|
||||
proc.waitForFinished()
|
||||
|
||||
if proc.exitCode() != 0:
|
||||
print(f"'sqlitebrowser' return with error code: {proc.exitCode()}")
|
||||
print("-error------")
|
||||
print(f"{proc.readAllStandardError()}")
|
||||
print("------------")
|
||||
Popen(f"sqlitebrowser", shell=True)
|
||||
|
||||
def about_window(self):
|
||||
print("about")
|
||||
|
||||
Reference in new issue
Block a user