[minor] installer fix

This commit is contained in:
Anand Doshi 2013-07-16 15:55:22 +05:30
parent 95db30993b
commit dd1b1a1090
2 changed files with 2 additions and 3 deletions

View file

@ -79,7 +79,7 @@ class Installer:
source_given = True
if not source_path:
source_given = False
source_path = os.path.join(os.path.sep.join(os.path.abspath(webnotes.__file__).split(os.path.sep)[:-3]), 'data', 'Framework.sql')
source_path = os.path.join(os.path.dirname(webnotes.__file__), "..", 'conf', 'Framework.sql')
self.dbman.restore_database(target, source_path, target, conf.db_password)
if verbose: print "Imported from database %s" % source_path

3
wnf.py
View file

@ -384,8 +384,7 @@ def run():
elif options.install_fresh:
from webnotes.install_lib.install import Installer
inst = Installer('root')
inst.import_from_db(options.install_fresh, source_path="lib/conf/Framework.sql",
verbose = 1)
inst.import_from_db(options.install_fresh, verbose = 1)
elif options.diff_ref_file is not None:
import webnotes.modules.diff