Skip to content

Commit

Permalink
Fixes issue with breakpoints icons in the gutter and importing consol…
Browse files Browse the repository at this point in the history
…e syntax on some platforms
  • Loading branch information
daveleroy committed Feb 4, 2023
1 parent 8cfb760 commit 3bda3b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions modules/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion modules/ui/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3bda3b6

Please sign in to comment.