mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
11 lines
218 B
Python
11 lines
218 B
Python
|
|
from glob import glob
|
||
|
|
|
||
|
|
|
||
|
|
def get_secrets():
|
||
|
|
secrets = dict()
|
||
|
|
for var in glob('/run/secrets/*'):
|
||
|
|
k = var.split('/')[-1]
|
||
|
|
v = open(var).read().rstrip('\n')
|
||
|
|
secrets[k] = v
|
||
|
|
return secrets
|