Skip to content

Commit f2f9213

Browse files
authored
Merge pull request #360 from Dessia-tech/fix/local_import
fix local import
2 parents 644f0e4 + 024cd2e commit f2f9213

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.22.2]
9+
### Fix
10+
- Local import
11+
812
## [0.22.0]
913
### Add
1014
- Integer axes only show integer ticks

plot_data/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ def plot_data_path(debug_mode: bool = False, version: str = None):
15061506
""" Get path of plot_data package to write it in html file of Figure to draw. """
15071507
version, folder, filename = get_current_link(version=version)
15081508
if debug_mode:
1509-
core_path = os.sep.join(os.getcwd().split(os.sep)[:-1] + [folder, filename])
1509+
core_path = os.sep.join(__file__.split(os.sep)[:-2] + [folder, filename])
15101510
if os.path.isfile(core_path):
15111511
return core_path.replace(" ", "%20")
15121512
print(f'Local compiled {core_path} not found, fall back to CDN')

0 commit comments

Comments
 (0)