Skip to content

Commit c5ee91b

Browse files
authored
Update pyinstaller.spec
1 parent c294f4d commit c5ee91b

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

pyinstaller.spec

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
# -*- mode: python ; coding: utf-8 -*-
22

33
# Apply patch
4-
import os
5-
64
from openpectus.lang.exec import units
7-
before = 'cache_folder = os.path.join(os.path.dirname(__file__), "pint-cache")'
8-
after = '''app_data_directory = os.path.join(
9-
os.path.expanduser("~"),
10-
"AppData",
11-
"Local",
12-
"OpenPectusEngineManagerGui",
13-
)
14-
'''+f'cache_folder = os.path.join(app_data_directory, "pint-cache")'
5+
before = "ureg = UnitRegistry(cache_folder=cache_folder)"
6+
after = "ureg = UnitRegistry()"
157
with open(units.__file__, "r") as f:
168
original_contents = f.read()
179
with open(units.__file__, "w") as f:

0 commit comments

Comments
 (0)