Skip to content

Commit

Permalink
Fixing cqcodecs path
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Oct 31, 2023
1 parent 7311411 commit a2d74d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cq-cli_pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ elif sys.platform == 'win32':

# Dynamically find all the modules in the cqcodecs directory
hidden_imports = []
file_list = glob.glob('.' + os.path.sep + 'cqcodecs' + os.path.sep + 'cq_codec_*.py')
file_list = glob.glob('.' + os.path.sep + 'src' + os.path.sep + 'cq_cli' + os.path.sep + 'cqcodecs' + os.path.sep + 'cq_codec_*.py')
for file_path in file_list:
file_name = file_path.split(os.path.sep)[-1]
module_name = file_name.replace(".py", "")
Expand All @@ -51,7 +51,7 @@ a = Analysis(['src/cq_cli/main.py'],
ocp_path
],
datas=[
(os.path.join(os.path.dirname(os.path.realpath('__file__')), 'cqcodecs'), 'cqcodecs')
(os.path.join(os.path.dirname(os.path.realpath('__file__')), 'src', 'cq_cli', 'cqcodecs'), 'cqcodecs')
],
hiddenimports=hidden_imports,
hookspath=[],
Expand Down

0 comments on commit a2d74d5

Please sign in to comment.