Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
LayerType,
SourceType,
)
from .utils import normalize_path

logger = logging.getLogger(__file__)

Expand Down Expand Up @@ -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()
Expand Down
8 changes: 0 additions & 8 deletions python/jupytergis_lab/jupytergis_lab/notebook/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
from enum import Enum
from urllib.parse import urljoin
import requests
Expand All @@ -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))
Loading