We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b46359 commit 2e21d02Copy full SHA for 2e21d02
1 file changed
roboflow/__init__.py
@@ -131,17 +131,12 @@ def initialize_roboflow(the_workspace=None):
131
132
global active_workspace
133
134
- conf_location = os.getenv("ROBOFLOW_CONFIG_DIR", default=str(Path.home() / ".config" / "roboflow" / "config.json"))
135
-
136
- if not os.path.isfile(conf_location):
137
- raise RuntimeError("To use this method, you must first login - run roboflow.login()")
+ if the_workspace is None:
+ active_workspace = Roboflow().workspace()
138
else:
139
- if the_workspace is None:
140
- active_workspace = Roboflow().workspace()
141
- else:
142
- active_workspace = Roboflow().workspace(the_workspace)
+ active_workspace = Roboflow().workspace(the_workspace)
143
144
- return active_workspace
+ return active_workspace
145
146
147
def load_model(model_url):
0 commit comments