Skip to content

Commit

Permalink
Merge pull request #298 from roboflow/login-bugfix
Browse files Browse the repository at this point in the history
bugfix: login breaks if ~/.config doesn't exist
  • Loading branch information
tonylampada authored Jul 29, 2024
2 parents 1a7bd66 + a5eb3f2 commit 5c2e4c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions roboflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from roboflow.models import CLIPModel, GazeModel # noqa: F401
from roboflow.util.general import write_line

__version__ = "1.1.36"
__version__ = "1.1.37"


def check_key(api_key, model, notebook, num_retries=0):
Expand Down Expand Up @@ -94,7 +94,7 @@ def login(workspace=None, force=False):

# make config directory if it doesn't exist
if not os.path.exists(os.path.dirname(conf_location)):
os.mkdir(os.path.dirname(conf_location))
os.makedirs(os.path.dirname(conf_location))

r_login = {"workspaces": r_login}
# set first workspace as default workspace
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
extras_require={
"desktop": ["opencv-python==4.8.0.74"],
"dev": [
"mypy",
"mypy<1.11.0",
"responses",
"ruff",
"twine",
Expand Down

0 comments on commit 5c2e4c8

Please sign in to comment.