diff --git a/src/gudrun_classes/gudrun_file.py b/src/gudrun_classes/gudrun_file.py index e6c067b42..02e838685 100644 --- a/src/gudrun_classes/gudrun_file.py +++ b/src/gudrun_classes/gudrun_file.py @@ -1486,7 +1486,11 @@ def dcs(self, path='', headless=True): if hasattr(sys, '_MEIPASS'): gudrun_dcs = os.path.join(sys._MEIPASS, f"gudrun_dcs{SUFFIX}") else: - gudrun_dcs = resolve(os.path.join(config.__rootdir__, "bin"), f"gudrun_dcs{SUFFIX}") + gudrun_dcs = resolve( + os.path.join( + config.__rootdir__, "bin" + ), f"gudrun_dcs{SUFFIX}" + ) if not os.path.exists(gudrun_dcs): return FileNotFoundError() else: diff --git a/src/gudrun_classes/purge_file.py b/src/gudrun_classes/purge_file.py index 315771fb0..a3e35ca58 100644 --- a/src/gudrun_classes/purge_file.py +++ b/src/gudrun_classes/purge_file.py @@ -352,7 +352,11 @@ def purge( if hasattr(sys, '_MEIPASS'): purge_det = os.path.join(sys._MEIPASS, f"purge_det{SUFFIX}") else: - purge_det = resolve(os.path.join(config.__rootdir__, "bin"), f"purge_det{SUFFIX}") + purge_det = resolve( + os.path.join( + config.__rootdir__, "bin" + ), f"purge_det{SUFFIX}" + ) if not os.path.exists(purge_det): return FileNotFoundError() proc = QProcess() diff --git a/src/gui/widgets/dialogs/configuration_dialog.py b/src/gui/widgets/dialogs/configuration_dialog.py index fc67600c5..672c3018c 100644 --- a/src/gui/widgets/dialogs/configuration_dialog.py +++ b/src/gui/widgets/dialogs/configuration_dialog.py @@ -5,6 +5,7 @@ import sys from src.gudrun_classes import config + class ConfigurationDialog(QDialog): """ Class to represent the ConfigurationDialog. Inherits QDialog. @@ -64,7 +65,9 @@ def loadConfigurations(self): targetDir = ( os.path.join(sys._MEIPASS, "bin", "configs", "instruments") if hasattr(sys, "_MEIPASS") - else os.path.join(config.__rootdir__, "bin", "configs", "instruments") + else os.path.join( + config.__rootdir__, "bin", "configs", "instruments" + ) ) self.widget.configList.addItems( [ @@ -78,7 +81,9 @@ def setConfiguration(self, _prev, _curr): targetDir = ( os.path.join(sys._MEIPASS, "bin", "configs", "instruments") if hasattr(sys, "_MEIPASS") - else os.path.join(config.__rootdir__, "bin", "configs", "instruments") + else os.path.join( + config.__rootdir__, "bin", "configs", "instruments" + ) ) self.configuration = os.path.abspath( os.path.join(