From 3bda3b61843901b3d2ed3c4308f5e8bbc7a4b2c8 Mon Sep 17 00:00:00 2001 From: David <2889367+daveleroy@users.noreply.github.com> Date: Sat, 4 Feb 2023 00:12:02 -0800 Subject: [PATCH] Fixes issue with breakpoints icons in the gutter and importing console syntax on some platforms --- modules/core/__init__.py | 5 +++-- modules/ui/image.py | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) 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: