IBM-Cloud / get-started-python

A Python application and tutorial that use Flask framework to provide a REST API to receive requests from the UI. The API then persists the data to a Cloudant database.
https://console.ng.bluemix.net/docs/runtimes/python/getting-started.html
Apache License 2.0
121 stars 446 forks source link

Path to vcap-local.json #9

Closed tomyc closed 6 years ago

tomyc commented 7 years ago

Hi, Running locally the sample file vcap-local.json couldn't be find. So, my proposition is as follow: ... elif os.path.isfile(os.path.join(os.path.dirname(file),'vcap-local.json')): with open(os.path.join(os.path.dirname(file),'vcap-local.json')) as f: ... Best regards, Tom

opiethehokie commented 7 years ago

@tomyc What OS are you on? The vcap-local.json file is found when the file is in the get-started-python directory for me on OSX.