Browse Source

Print out executable PATH in log

master
Nils 3 years ago
parent
commit
eefd69aaa4
  1. 10
      qtgui/settings.py

10
qtgui/settings.py

@ -41,7 +41,7 @@ class SettingsDialog(QtWidgets.QDialog):
def __init__(self, mainWindow):
super().__init__()
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.ui.setupUi(self)
self.mainWindow = mainWindow
self.success = False
@ -94,10 +94,10 @@ class SettingsDialog(QtWidgets.QDialog):
pth = settings.value("programPathsPlainTextEdit", type=str)
else:
pth = None
blacklist = bl.split("\n") if bl else []
whitelist = wl.split("\n") if wl else []
api.systemProgramsSetBlacklist(blacklist)
api.systemProgramsSetWhitelist(whitelist)
@ -105,10 +105,12 @@ class SettingsDialog(QtWidgets.QDialog):
additionalExecutablePaths = pth.split("\n") if pth else []
if additionalExecutablePaths:
os.environ["PATH"] = os.pathsep.join(additionalExecutablePaths) + os.pathsep + os.environ["PATH"]
logger.info(f"Binary search paths: {os.environ['PATH']}")
def process(self):
settings = QtCore.QSettings("LaborejoSoftwareSuite", METADATA["shortName"])
settings.setValue("launcherBlacklistPlainTextEdit", self.ui.launcherBlacklistPlainTextEdit.toPlainText())
settings.setValue("launcherWhitelistPlainTextEdit", self.ui.launcherWhitelistPlainTextEdit.toPlainText())
settings.setValue("programPathsPlainTextEdit", self.ui.programPathsPlainTextEdit.toPlainText())

Loading…
Cancel
Save