Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942590
D2740.id6954.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2740.id6954.diff
View Options
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
@@ -12,8 +12,18 @@
from xml.etree import ElementTree
+DICTIONARY_FILENAMES = [
+ "cachedDictionary.xml",
+ "spellchecker-dictionary.xml"
+]
+
+
def get_configuration_path():
- return os.environ["HOME"] + "/.config/JetBrains"
+ """Find JetBrains configuration folder for Windows and UNIX systems."""
+ try:
+ return os.environ["APPDATA"] + "/JetBrains"
+ except KeyError:
+ return os.environ["HOME"] + "/.config/JetBrains"
def find_application_level_dictionaries():
@@ -24,7 +34,8 @@
return [
candidate
for candidate in [
- os.path.join(base_path, entry.name, "options", "cachedDictionary.xml")
+ os.path.join(base_path, entry.name, "options", filename)
+ for filename in DICTIONARY_FILENAMES
for entry in os.scandir(base_path)
if entry.is_dir()
]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 16:56 (11 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315047
Default Alt Text
D2740.id6954.diff (1 KB)
Attached To
Mode
D2740: Find more JetBrains paths for dictionaries
Attached
Detach File
Event Timeline
Log In to Comment