forked from pcarivbts/vbts-webadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanage.py
More file actions
23 lines (18 loc) · 730 Bytes
/
Copy pathmanage.py
File metadata and controls
23 lines (18 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
Copyright (c) 2015-present, Philippine-California Advanced Research Institutes-
The Village Base Station Project (PCARI-VBTS). All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
"""
import os
import sys
import glob
if __name__ == "__main__":
env_dir = 'envdir'
env_vars = glob.glob(os.path.join(env_dir, '*'))
for env_var in env_vars:
with open(env_var, 'r') as env_var_file:
os.environ.setdefault(env_var.split(os.sep)[-1],
env_var_file.read().strip())
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)