research-virtualfortknox / msb-client-websocket-python

The python client library to connect to the websocket interface of the MSB (Manufacturing Service Bus)
Apache License 2.0
5 stars 4 forks source link

Search path for application.properties #4

Closed theuser1 closed 5 years ago

theuser1 commented 5 years ago

I'm submitting a ...

Current behavior: The application.properties is loaded from the current working directory: config = open("application.properties", "r")

This works in most cases, but in edge cases like ROS the working directory is not set properly for the current node.

Expected behavior: The user should be able to provide a path where the application.properties are stored. Otherwise the file should be searched in the working directory.

MSB client version: 1.0.2

ipamaas commented 5 years ago

Added in v1.0.4

You can now set a custom path to the application.properties file in MsbClient constructor.

myMsbClient = MsbClient(applicationPropertiesCustomPath="./your/path/to/application.properties")