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 4a2db10 commit 3bc1cb7Copy full SHA for 3bc1cb7
roboflow/config.py
@@ -14,11 +14,17 @@ def get_conditional_configuration_variable(key, default):
14
string: The value of the conditional configuration variable.
15
"""
16
17
+ os_name = os.name
18
+
19
+ if os_name == "nt":
20
+ default_path = os.getenv("USERPROFILE") + "\\roboflow\\config.json"
21
+ else:
22
+ default_path = os.getenv("HOME") + "/.config/roboflow/config.json"
23
24
# default configuration location
- # add support for windows
25
conf_location = os.getenv(
26
"ROBOFLOW_CONFIG_DIR",
- default=f"os.getenv('HOME')/.config/roboflow/config.json",
27
+ default=default_path,
28
)
29
30
# read config file for roboflow if logged in from python or CLI
0 commit comments