diff --git a/modules/core/__init__.py b/modules/core/__init__.py index 5aa81d4..7e346df 100644 --- a/modules/core/__init__.py +++ b/modules/core/__init__.py @@ -21,8 +21,9 @@ def package_path(*components: str) -> str: return os.path.join(_current_package_path, *components) return _current_package_path -def package_path_relative(*components: str) -> str: - return os.path.join('Packages', _current_package, *components) +def package_path_relative(component: str) -> str: + # WARNING!!! dont change to os.path.join sublime doesn't like back slashes in add_region? + return f'Packages/{_current_package}/{component}' class stopwatch: diff --git a/modules/ui/image.py b/modules/ui/image.py index bb99b91..459a69a 100644 --- a/modules/ui/image.py +++ b/modules/ui/image.py @@ -10,7 +10,6 @@ import base64 def _path_for_image(name: str) -> str: - # WARNING!!! dont change to os.path.join sublime doesn't like back slashes in add_region? return core.package_path_relative(f'images/{name}') def _data_image_png_b64_png_from_resource(path: str) -> str: