Skip to content

Commit

Permalink
Fix issue with missing files from executable (#46)
Browse files Browse the repository at this point in the history
* Bump version to 3.5.2
  • Loading branch information
sveinse committed Sep 12, 2024
1 parent c6f2dff commit de0a82e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packaging/objdictedit.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ a = Analysis(
pathex=[],
binaries=[],
datas=[
(basepath + "/src/objdictgen/img/networkedit.ico", "objdictgen/img"),
(basepath + "/src/objdictgen/img/*", "objdictgen/img"),
(basepath + "/src/objdictgen/config/*.prf", "objdictgen/config"),
(basepath + "/src/objdictgen/schema/*.json", "objdictgen/schema"),
],
hiddenimports=[],
hookspath=[],
Expand Down
10 changes: 7 additions & 3 deletions src/objdictgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
# USA

import os
import sys
from pathlib import Path

from objdictgen.node import Node
from objdictgen.nodemanager import NodeManager

__version__ = "3.5.1"
__version_tuple__ = (3, 5, 1, 0)
__version__ = "3.5.2"
__version_tuple__ = (3, 5, 2, 0)
__copyright__ = "(c) 2024 Svein Seldal, Laerdal Medical AS, and several. Licensed under GPLv2.1."

# Shortcuts
Expand All @@ -33,7 +34,10 @@

ODG_PROGRAM = "odg"

SCRIPT_DIRECTORY = Path(__file__).parent
if hasattr(sys, '_MEIPASS'):
SCRIPT_DIRECTORY = Path(sys._MEIPASS) / 'objdictgen'
else:
SCRIPT_DIRECTORY = Path(__file__).resolve().parent

PROFILE_DIRECTORIES: list[Path] = [
SCRIPT_DIRECTORY / 'config'
Expand Down

0 comments on commit de0a82e

Please sign in to comment.