mirror of
https://github.com/sprockets/sprockets.clients.dynamodb.git
synced 2024-11-23 19:29:51 +00:00
16 lines
451 B
Python
16 lines
451 B
Python
import os
|
|
|
|
|
|
def setup_module():
|
|
try:
|
|
with open('build/test-environment') as env_file:
|
|
for line in env_file:
|
|
if line.startswith('export '):
|
|
line = line[7:]
|
|
name, sep, value = line.strip().partition('=')
|
|
if value:
|
|
os.environ[name] = value
|
|
else:
|
|
os.environ.pop(name, None)
|
|
except IOError:
|
|
pass
|