Skip to content

Commit

Permalink
Change directory only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesf authored and koniu committed Mar 23, 2015
1 parent ee915fd commit 1a249aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui-standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
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)
Expand Down

0 comments on commit 1a249aa

Please sign in to comment.