Skip to content

Commit 4a2db10

Browse files
committed
fix config location for windows
1 parent e73955f commit 4a2db10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roboflow/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ def auth(api_key):
7272

7373

7474
def login(workspace=None, force=False):
75+
home_dir = os.getenv("HOME") or os.getenv("USERPROFILE")
76+
7577
conf_location = os.getenv(
76-
"ROBOFLOW_CONFIG_DIR",
78+
home_dir,
7779
default=os.getenv("HOME") + "/.config/roboflow/config.json",
7880
)
7981

0 commit comments

Comments
 (0)