mirror of
https://github.com/Lemonochrme/clover.git
synced 2025-06-08 16:50:50 +02:00
14 lines
No EOL
298 B
Python
14 lines
No EOL
298 B
Python
from os.path import isfile
|
|
Import("env")
|
|
assert isfile(".env")
|
|
try:
|
|
f = open(".env", "r")
|
|
lines = f.readlines()
|
|
envs = []
|
|
for line in lines:
|
|
envs.append("-D{}".format(line.strip()))
|
|
env.Append(BUILD_FLAGS=envs)
|
|
except IOError:
|
|
print("File .env not accessible",)
|
|
finally:
|
|
f.close() |