diff --git a/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py b/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py index 04b598104..e6830efa6 100644 --- a/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py +++ b/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py @@ -29,7 +29,6 @@ LayerType, SourceType, ) -from .utils import normalize_path logger = logging.getLogger(__file__) @@ -708,7 +707,7 @@ def _path_to_comm(cls, filePath: Optional[str]) -> Dict: contentType = None if filePath is not None: - path = normalize_path(filePath) + path = filePath file_name = Path(path).name try: ext = file_name.split(".")[1].lower() diff --git a/python/jupytergis_lab/jupytergis_lab/notebook/utils.py b/python/jupytergis_lab/jupytergis_lab/notebook/utils.py index 36ca3a583..064d09c97 100644 --- a/python/jupytergis_lab/jupytergis_lab/notebook/utils.py +++ b/python/jupytergis_lab/jupytergis_lab/notebook/utils.py @@ -1,4 +1,3 @@ -import os from enum import Enum from urllib.parse import urljoin import requests @@ -16,10 +15,3 @@ def multi_urljoin(*parts) -> str: parts[0], "/".join(part for part in parts[1:]), ) - - -def normalize_path(path: str) -> str: - if os.path.isabs(path): - return path - else: - return os.path.abspath(os.path.join(os.getcwd(), path))