Commit aabcfbd1 authored by Michael Salim's avatar Michael Salim
Browse files

setuptools works with new DB management strategy

parent eca7feb6
......@@ -8,14 +8,19 @@ from setuptools.command.develop import develop
from codecs import open
from os import path
import os
import time
def auto_setup_db():
here = path.abspath(path.dirname(__file__))
default_db_path = os.path.join(here , 'default_balsamdb')
os.mkdir(default_db_path, mode=0o755)
with open("default_db_path/dbwriter_address", 'w') as fp:
cwd = os.getcwd()
with open("dbwriter_address", 'w') as fp:
fp.write('{"db_type": "sqlite3"}')
import django
os.environ['DJANGO_SETTINGS_MODULE'] = 'balsam.django_config.settings'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment