Skip to content

Commit 94c7219

Browse files
Merge pull request #356 from Carvera-Community/v2.0.0-RC2
Small fixes
2 parents 7aa0646 + c0f5630 commit 94c7219

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

carveracontroller/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3205,7 +3205,7 @@ def set_local_folder_to_last_opened(self):
32053205
self.fetch_recent_local_dir_list()
32063206

32073207
# Find the most recent directory that is still present
3208-
local_path = None
3208+
local_path = ''
32093209
for dir in self.recent_local_dir_list:
32103210
if os.path.isdir(dir):
32113211
local_path = dir

scripts/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def build_pyinstaller_args(
7373
build_args += ["--icon", f"{ROOT_ASSETS_PATH.joinpath('icon-src.ico')}"]
7474
logger.info(f"Add hidapi.dll binary: {ROOT_ASSETS_PATH.joinpath('hidapi.dll')}")
7575
build_args += ["--add-binary", f"{ROOT_ASSETS_PATH.joinpath('hidapi.dll')}:."]
76+
logger.info("Add win32timezone to hidden imports")
77+
build_args += ["--hiddenimport", "win32timezone"]
7678
else:
7779
logger.info(f"Output file icon: {ROOT_ASSETS_PATH.joinpath('icon-src.png')}")
7880
build_args += ["--icon", f"{ROOT_ASSETS_PATH.joinpath('icon-src.png')}"]

0 commit comments

Comments
 (0)