Browse Source

Merge pull request #1 from rmelly/master

Read file as binary
master
Brett Langdon 11 years ago
parent
commit
4506aa3180
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      swuploader.py

+ 1
- 1
swuploader.py View File

@ -56,7 +56,7 @@ def upload_model(settings, client):
if not settings.get("file"):
return False
with open(settings["file"]) as fp:
with open(settings["file"],'rb') as fp:
settings["file"] = base64.b64encode(fp.read())
return client.add_model(settings)

Loading…
Cancel
Save