Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use os.pathsep for better cross platform support #88

Merged
merged 1 commit into from
Aug 6, 2023
Merged
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
3 changes: 2 additions & 1 deletion jupyterlab_email/_email.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import json
import emails
import base64
Expand Down Expand Up @@ -40,7 +41,7 @@ def make_email(
also_attach : also attach pdf/html/both
postprocessor : run postprocessor on soup
"""
name = path.rsplit("/", 1)[1].rsplit(".", 1)[0]
name = path.rsplit(os.pathsep, 1)[1].rsplit(".", 1)[0]
model = nbformat.writes(nbformat.reads(json.dumps(model), 4))

logger = logger or logging
Expand Down