Commit 1a249aa5 authored by Yves Fischer's avatar Yves Fischer Committed by koniu
Browse files

Change directory only if needed

parent ee915fda
......@@ -10,7 +10,8 @@ parser.add_argument('-p', '--port', default='8080', type=int, help='port to list
args = parser.parse_args()
# change to webui's directory and import
os.chdir(os.path.dirname(__file__))
if os.path.dirname(__file__) != "":
os.chdir(os.path.dirname(__file__))
# set up webui and run in own http server
webui.bottle.debug(True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment