File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ a = Analysis(
27
27
pathex = [],
28
28
binaries = [],
29
29
datas = [
30
- (basepath + "/src/objdictgen/img/networkedit.ico" , "objdictgen/img" ),
30
+ (basepath + "/src/objdictgen/img/*" , "objdictgen/img" ),
31
+ (basepath + "/src/objdictgen/config/*.prf" , "objdictgen/config" ),
32
+ (basepath + "/src/objdictgen/schema/*.json" , "objdictgen/schema" ),
31
33
],
32
34
hiddenimports = [],
33
35
hookspath = [],
Original file line number Diff line number Diff line change 18
18
# USA
19
19
20
20
import os
21
+ import sys
21
22
from pathlib import Path
22
23
23
24
from objdictgen .node import Node
24
25
from objdictgen .nodemanager import NodeManager
25
26
26
- __version__ = "3.5.1 "
27
- __version_tuple__ = (3 , 5 , 1 , 0 )
27
+ __version__ = "3.5.2 "
28
+ __version_tuple__ = (3 , 5 , 2 , 0 )
28
29
__copyright__ = "(c) 2024 Svein Seldal, Laerdal Medical AS, and several. Licensed under GPLv2.1."
29
30
30
31
# Shortcuts
33
34
34
35
ODG_PROGRAM = "odg"
35
36
36
- SCRIPT_DIRECTORY = Path (__file__ ).parent
37
+ if hasattr (sys , '_MEIPASS' ):
38
+ SCRIPT_DIRECTORY = Path (sys ._MEIPASS ) / 'objdictgen'
39
+ else :
40
+ SCRIPT_DIRECTORY = Path (__file__ ).resolve ().parent
37
41
38
42
PROFILE_DIRECTORIES : list [Path ] = [
39
43
SCRIPT_DIRECTORY / 'config'
You can’t perform that action at this time.
0 commit comments