[minor] installer fix
This commit is contained in:
parent
95db30993b
commit
dd1b1a1090
2 changed files with 2 additions and 3 deletions
|
|
@ -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
3
wnf.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue