Skip to content

Commit

Permalink
Lowercase APPNAME on macOS Homebrew (#364)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
singingwolfboy and blink1073 authored Oct 29, 2023
1 parent 0438e75 commit 9a6b050
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jupyter_core/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@

pjoin = os.path.join

# Capitalize Jupyter in paths only on Windows and MacOS
APPNAME = "Jupyter" if sys.platform in ("win32", "darwin") else "jupyter"
# Capitalize Jupyter in paths only on Windows and MacOS (when not in Homebrew)
if sys.platform == "win32" or (
sys.platform == "darwin" and not sys.prefix.startswith("/opt/homebrew")
):
APPNAME = "Jupyter"
else:
APPNAME = "jupyter"

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

0 comments on commit 9a6b050

Please sign in to comment.