diff --git a/VERSION b/VERSION index 570c796..e946d6b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.0.2 +v1.0.3 diff --git a/dist/macos/Configurator.app/Contents/MacOS/Configurator b/dist/macos/Configurator.app/Contents/MacOS/Configurator index 4ffe8ee..efbc0e6 100755 Binary files a/dist/macos/Configurator.app/Contents/MacOS/Configurator and b/dist/macos/Configurator.app/Contents/MacOS/Configurator differ diff --git a/dist/macos/Configurator.dmg b/dist/macos/Configurator.dmg index 4a3c1f7..49f176b 100644 Binary files a/dist/macos/Configurator.dmg and b/dist/macos/Configurator.dmg differ diff --git a/dist/windows/Configurator.exe b/dist/windows/Configurator.exe index ff28e2f..7e7be41 100644 Binary files a/dist/windows/Configurator.exe and b/dist/windows/Configurator.exe differ diff --git a/src/configurator.py b/src/configurator.py index 2ffb004..bb05d91 100755 --- a/src/configurator.py +++ b/src/configurator.py @@ -692,21 +692,21 @@ def add_input(self, layout, section, key, parameters): input_layout.setContentsMargins(0, 0, 0, 0) elif parameters["type"] == "path": # Handle path inputs - default_path = os.path.abspath(os.path.join(self.script_directory, parameters["default"])) if parameters["default"] else "" - value = self.parse_variables(value) or default_path + default_path = os.path.abspath(self.parse_variables(parameters["default"])) if parameters["default"] else "" + value = os.path.abspath(self.parse_variables(value) or default_path) # Create the layout and widgets for the path field path_layout = QHBoxLayout() path_layout.setContentsMargins(0, 0, 0, 0) line_edit = QLineEdit() line_edit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) - line_edit.setText(os.path.abspath(value)) + line_edit.setText(value) browse_button = QPushButton("...") default_button = QPushButton("Set Default") # Connect buttons browse_button.clicked.connect(lambda: self.browse_path(line_edit)) - default_button.clicked.connect(lambda: line_edit.setText(os.path.abspath(self.parse_variables(default_path)))) + default_button.clicked.connect(lambda: line_edit.setText(default_path)) # Add widgets to the path layout path_layout.addWidget(line_edit)