Skip to content

Commit c7f2ef3

Browse files
committed
Fix the windows path for license resource
Signed-off-by: Jiyeong Seok <[email protected]>
1 parent c2cc7b3 commit c7f2ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fosslight_util/spdx_licenses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_license_from_nick():
2020
licenses_file = os.path.join(_resources_dir, _frequent_lic_nick_json_file)
2121

2222
try:
23-
base_dir = sys._MEIPASS
23+
base_dir = os.path.join(sys._MEIPASS, vars(sys.modules[__name__])['__package__'])
2424
except Exception:
2525
base_dir = os.path.dirname(__file__)
2626

@@ -42,7 +42,7 @@ def get_spdx_licenses_json():
4242
licenses_file = os.path.join(_resources_dir, _licenses_json_file)
4343

4444
try:
45-
base_dir = sys._MEIPASS
45+
base_dir = os.path.join(sys._MEIPASS, vars(sys.modules[__name__])['__package__'])
4646
except Exception:
4747
base_dir = os.path.dirname(__file__)
4848

0 commit comments

Comments
 (0)