Fix influx2.py

Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
Matthew Stidham
2021-04-20 11:45:36 -07:00
parent f954d9a0ea
commit b68064028f
4 changed files with 65 additions and 0 deletions

View File

View File

View File

@@ -10,6 +10,11 @@ if sys.version_info[0] != 3:
print("This script requires Python 3")
exit(1)
if 'py-json' not in sys.path:
sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
import requests
import json
import influxdb_client