Page MenuHomeDevCentral

D3161.diff
No OneTemporary

D3161.diff

diff --git a/src/mergedictionaries/sources/jetbrains.py b/src/mergedictionaries/sources/jetbrains.py
--- a/src/mergedictionaries/sources/jetbrains.py
+++ b/src/mergedictionaries/sources/jetbrains.py
@@ -16,11 +16,19 @@
def get_configuration_path():
- """Find JetBrains configuration folder for Windows and UNIX systems."""
+ """Find JetBrains configuration folder for Windows, macOS and other UNIX systems."""
try:
return os.environ["APPDATA"] + "/JetBrains"
except KeyError:
- return os.environ["HOME"] + "/.config/JetBrains"
+ candidates = [
+ os.environ["HOME"] + "/Library/Application Support/JetBrains",
+ os.environ["HOME"] + "/.config/JetBrains",
+ ]
+ for candidate in candidates:
+ if os.path.exists(candidate):
+ break
+
+ return candidate
def find_application_level_dictionaries():

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 16:55 (4 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264846
Default Alt Text
D3161.diff (912 B)

Event Timeline