forked from axiom-team/jaklis
cosmetic
This commit is contained in:
parent
cb1703a554
commit
2af9e72379
|
@ -7,12 +7,13 @@ from dotenv import load_dotenv
|
||||||
from lib.cesiumMessaging import ReadFromCesium, SendToCesium, DeleteFromCesium, VERSION
|
from lib.cesiumMessaging import ReadFromCesium, SendToCesium, DeleteFromCesium, VERSION
|
||||||
|
|
||||||
# Get variables environment
|
# Get variables environment
|
||||||
|
HOME = os.getenv("HOME")
|
||||||
if not os.path.isfile('.env'):
|
if not os.path.isfile('.env'):
|
||||||
copyfile(".env.template", ".env")
|
copyfile(".env.template", ".env")
|
||||||
dotenv_path = join(dirname(__file__), '.env')
|
dotenv_path = join(dirname(__file__), '.env')
|
||||||
load_dotenv(dotenv_path)
|
load_dotenv(dotenv_path)
|
||||||
|
|
||||||
dunikey = os.getenv('DUNIKEY')
|
dunikey = HOME + os.getenv('DUNIKEY')
|
||||||
pod = os.getenv('POD')
|
pod = os.getenv('POD')
|
||||||
if not dunikey or not pod:
|
if not dunikey or not pod:
|
||||||
sys.stderr.write("Please fill the path of your private key (PubSec), and a Cesium ES address in .env file\n")
|
sys.stderr.write("Please fill the path of your private key (PubSec), and a Cesium ES address in .env file\n")
|
||||||
|
|
Loading…
Reference in New Issue