mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-03 09:49:25 +02:00
Change directory only if needed
This commit is contained in:
parent
ee915fda98
commit
1a249aa52f
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ parser.add_argument('-p', '--port', default='8080', type=int, help='port to list
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# change to webui's directory and import
|
# 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
|
# set up webui and run in own http server
|
||||||
webui.bottle.debug(True)
|
webui.bottle.debug(True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue