Fix isPath
This commit is contained in:
parent
9ae7b27bdb
commit
af01a7a4d9
|
@ -1,9 +1,10 @@
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from json import JSONEncoder, dumps
|
from json import JSONEncoder, dumps
|
||||||
from functools import wraps, partial
|
from functools import wraps, partial
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
from os.path import dirname, join, normpath, abspath
|
from os.path import dirname, join, normpath, abspath, isfile
|
||||||
from datetime import datetime, date
|
from datetime import datetime, date
|
||||||
|
|
||||||
from sanic import Sanic, Blueprint
|
from sanic import Sanic, Blueprint
|
||||||
|
@ -26,7 +27,7 @@ log = logging.getLogger(__name__)
|
||||||
|
|
||||||
app = Sanic("OpenBikeSensor Portal API", load_env="OBS_", log_config={})
|
app = Sanic("OpenBikeSensor Portal API", load_env="OBS_", log_config={})
|
||||||
|
|
||||||
if os.path.isfile("./config.py"):
|
if isfile("./config.py"):
|
||||||
app.update_config("./config.py")
|
app.update_config("./config.py")
|
||||||
|
|
||||||
c = app.config
|
c = app.config
|
||||||
|
|
Loading…
Reference in a new issue