We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c294f4d commit c5ee91bCopy full SHA for c5ee91b
1 file changed
pyinstaller.spec
@@ -1,17 +1,9 @@
1
# -*- mode: python ; coding: utf-8 -*-
2
3
# Apply patch
4
-import os
5
-
6
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")'
+before = "ureg = UnitRegistry(cache_folder=cache_folder)"
+after = "ureg = UnitRegistry()"
15
with open(units.__file__, "r") as f:
16
original_contents = f.read()
17
with open(units.__file__, "w") as f:
0 commit comments