Skip to content

Commit

Permalink
Merge pull request #360 from Dessia-tech/fix/local_import
Browse files Browse the repository at this point in the history
fix local import
  • Loading branch information
Tanguylo authored Mar 14, 2024
2 parents 644f0e4 + 024cd2e commit f2f9213
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.22.2]
### Fix
- Local import

## [0.22.0]
### Add
- Integer axes only show integer ticks
Expand Down
2 changes: 1 addition & 1 deletion plot_data/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ def plot_data_path(debug_mode: bool = False, version: str = None):
""" Get path of plot_data package to write it in html file of Figure to draw. """
version, folder, filename = get_current_link(version=version)
if debug_mode:
core_path = os.sep.join(os.getcwd().split(os.sep)[:-1] + [folder, filename])
core_path = os.sep.join(__file__.split(os.sep)[:-2] + [folder, filename])
if os.path.isfile(core_path):
return core_path.replace(" ", "%20")
print(f'Local compiled {core_path} not found, fall back to CDN')
Expand Down

0 comments on commit f2f9213

Please sign in to comment.