Files
wger/extras/scripts/create_local_settings.py
Roland Geider 2dfd31cb1c Add travis CI configuration file
--HG--
branch : 1.1-dev
rename : main.py => wger/main.py
2013-01-25 00:22:03 +01:00

16 lines
383 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
script_path = os.path.realpath(os.path.dirname(__file__))
sys.path.append(os.path.join(script_path, '..', '..'))
from wger.main import create_settings
if __name__ == "__main__":
cwd = os.getcwd()
create_settings(os.path.join(cwd, 'settings.py'),
os.path.join(cwd, 'database.sqlite'))