Commit 636eeb03 authored by Nikita Yurishev's avatar Nikita Yurishev

fixed .env logic

parent a11333c5
creds.env
config.ini
*.env
*.pyc
__pycache__/
from influxdb import InfluxDBClient
import os
from dotenv import load_dotenv
load_dotenv('creds.env')
import time
#Загрузка файла с переменными окружения
load_dotenv('/home/nikyur/Projects/git/co2/creds.env')
#Проверка
print("INFLUXDB_URL:", os.getenv('INFLUXDB_URL'))
print("INFLUXDB_DB:", os.getenv('INFLUXDB_DB'))
class InfluxConnection:
def __init__(self):
# Получение конфигурации из переменных окружения
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment