Skip to content

Commit a220d8b

Browse files
committed
make sure we can use the right API key for the selected workspace
1 parent e5d2eae commit a220d8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roboflow/roboflowpy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def download(args):
4747

4848

4949
def import_dataset(args):
50-
rf = roboflow.Roboflow()
50+
api_key = load_roboflow_api_key(args.workspace)
51+
rf = roboflow.Roboflow(api_key)
5152
workspace = rf.workspace(args.workspace)
5253
workspace.upload_dataset(
5354
dataset_path=args.folder,

0 commit comments

Comments
 (0)