diff --git a/README.md b/README.md index f89aecd..e1b0c7a 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,12 @@ Currently, octoprint-cli is limited to only printers with a single extruder and Colored and formatted text is not available on Windows systems due to the lack of support on cmd and powershell terminals +## Installation + +Windows users can grab the application from [releases](https://github.com/UserBlackBox/octoprint-cli/releases) + +Linux users can drop the python program in their user bin folder + ## Usage ``` diff --git a/octoprint-cli.py b/octoprint-cli.py index 78c450a..d4a3fee 100755 --- a/octoprint-cli.py +++ b/octoprint-cli.py @@ -56,7 +56,7 @@ def help_msg(): #help message config = configparser.ConfigParser() #load config file try: open('config.ini') - config.read('config.ini') + config.read(os.path.join(sys.path[0],'config.ini')) destination = config['server']['ServerAddress'] key = config['server']['ApiKey'] except KeyError: