Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def set_env_vars_from_dot_env():
    str = get_dot_env_str_from_file("local")
    if str is None:  # there was no config file for that environment
        return False

    for k, v in read_config_str(str, ".env"):
        print "setting {k} to {v}".format(k=k, v=v)
        os.environ[k] = v
        


src/t/o/total-impact-core-HEAD/run_backend.py   total-impact-core(Download)
import config
config.set_env_vars_from_dot_env()
 
from totalimpact import backend
backend.main()

src/t/o/total-impact-core-HEAD/run.py   total-impact-core(Download)
import config
config.set_env_vars_from_dot_env()
 
from totalimpact import app
app.run(port=5001, debug=True)