We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0438e75 commit 9a6b050Copy full SHA for 9a6b050
jupyter_core/paths.py
@@ -25,8 +25,13 @@
25
26
pjoin = os.path.join
27
28
-# Capitalize Jupyter in paths only on Windows and MacOS
29
-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 (
30
+ sys.platform == "darwin" and not sys.prefix.startswith("/opt/homebrew")
31
+):
32
+ APPNAME = "Jupyter"
33
+else:
34
+ APPNAME = "jupyter"
35
36
# UF_HIDDEN is a stat flag not defined in the stat module.
37
# It is used by BSD to indicate hidden files.
0 commit comments