blob: ed0f53a3aa3fee998b9528c0f9c79f8d85aedffc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python
import ddns
import os
import ddns.cfg_parser
if os.environ.get('DDNS_CFG_PATH'):
cfg_file = os.environ['DDNS_CFG_PATH']
else:
cfg_file = os.path.dirname(os.path.realpath(__file__)) + '/ddns.cfg'
ddns.cfg_parser.cfg_file = cfg_file
ddns.cfg_parser.read_config()
ddns.app.run(debug=True)
|