Skip to content

Commit 221e595

Browse files
committed
bugfix: login breaks if ~/.config doesn't exist
1 parent 1a7bd66 commit 221e595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def login(workspace=None, force=False):
9494

9595
# make config directory if it doesn't exist
9696
if not os.path.exists(os.path.dirname(conf_location)):
97-
os.mkdir(os.path.dirname(conf_location))
97+
os.makedirs(os.path.dirname(conf_location))
9898

9999
r_login = {"workspaces": r_login}
100100
# set first workspace as default workspace

0 commit comments

Comments
 (0)