Skip to content

Commit 0ded668

Browse files
committed
fix local import
1 parent bb1ec26 commit 0ded668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plot_data/core.py

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

0 commit comments

Comments
 (0)