Skip to content

Commit 9a6b050

Browse files
Lowercase APPNAME on macOS Homebrew (#364)
Co-authored-by: Steven Silvester <[email protected]>
1 parent 0438e75 commit 9a6b050

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jupyter_core/paths.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525

2626
pjoin = os.path.join
2727

28-
# Capitalize Jupyter in paths only on Windows and MacOS
29-
APPNAME = "Jupyter" if sys.platform in ("win32", "darwin") else "jupyter"
28+
# Capitalize Jupyter in paths only on Windows and MacOS (when not in Homebrew)
29+
if sys.platform == "win32" or (
30+
sys.platform == "darwin" and not sys.prefix.startswith("/opt/homebrew")
31+
):
32+
APPNAME = "Jupyter"
33+
else:
34+
APPNAME = "jupyter"
3035

3136
# UF_HIDDEN is a stat flag not defined in the stat module.
3237
# It is used by BSD to indicate hidden files.

0 commit comments

Comments
 (0)