Build binary on linux

This commit is contained in:
Veronica Berglyd Olsen
2025-01-16 19:55:50 +01:00
parent b9602da177
commit 931863d4ee
5 changed files with 79 additions and 4 deletions
+4 -4
View File
@@ -109,10 +109,10 @@ class Config:
self._appPath = Path(__file__).parent.absolute()
self._appRoot = self._appPath.parent
if self._appRoot.is_file():
# novelWriter is packaged as a single file
self._appRoot = self._appRoot.parent
self._appPath = self._appRoot
if getattr(sys, "frozen", False):
# novelWriter is packaged as an exe
self._appPath = Path(__file__).parent.parent.absolute()
self._appRoot = self._appPath
# Runtime Settings and Variables
self._hasError = False # True if the config class encountered an error