try to be a bit more clever in finding our libraries
authorgregor herrmann <gregor@toastfreeware.priv.at>
Thu, 5 Jul 2018 17:28:21 +0000 (19:28 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Thu, 5 Jul 2018 18:27:34 +0000 (20:27 +0200)
commit5a46011332bbb5252b14d5cc1828772b09c3225e
treeaa432bb51b6458c73dd6fa47161356f0fe76f232
parentb986a4736e1027ea0f74e14f040c8241cb5760f7
try to be a bit more clever in finding our libraries

appending '..' to sys.path only works when seepark_web.py is started from
its directory, otherwise we get:

flask.cli.NoAppException: While importing "seepark_web", an ImportError was raised:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/home/gregoa/src/toastfreeware/seepark/web/seepark_web.py", line 14, in <module>
    from seeparklib.openweathermap import openweathermap_json, OpenWeatherMapError
ModuleNotFoundError: No module named 'seeparklib'
web/seepark_web.py