1
0
Fork 0
mirror of https://github.com/koniu/recoll-webui.git synced 2025-10-03 17:59:50 +02:00

Change directory only if needed

This commit is contained in:
Yves Fischer 2014-11-10 22:45:32 +01:00 committed by koniu
parent ee915fda98
commit 1a249aa52f

View file

@ -10,6 +10,7 @@ parser.add_argument('-p', '--port', default='8080', type=int, help='port to list
args = parser.parse_args()
# change to webui's directory and import
if os.path.dirname(__file__) != "":
os.chdir(os.path.dirname(__file__))
# set up webui and run in own http server