Skip to content

Commit

Permalink
Merge pull request #114 from fosslight/fix_windows_path
Browse files Browse the repository at this point in the history
Fix the windows path for license resource
  • Loading branch information
bjk7119 authored May 11, 2023
2 parents 79adf39 + c7f2ef3 commit 0463850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fosslight_util/spdx_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_license_from_nick():
licenses_file = os.path.join(_resources_dir, _frequent_lic_nick_json_file)

try:
base_dir = sys._MEIPASS
base_dir = os.path.join(sys._MEIPASS, vars(sys.modules[__name__])['__package__'])
except Exception:
base_dir = os.path.dirname(__file__)

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

try:
base_dir = sys._MEIPASS
base_dir = os.path.join(sys._MEIPASS, vars(sys.modules[__name__])['__package__'])
except Exception:
base_dir = os.path.dirname(__file__)

Expand Down

0 comments on commit 0463850

Please sign in to comment.