diff --git a/webnotes/install_lib/install.py b/webnotes/install_lib/install.py index 45c0f2582d..f758225e0b 100755 --- a/webnotes/install_lib/install.py +++ b/webnotes/install_lib/install.py @@ -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 diff --git a/wnf.py b/wnf.py index e3c263be6e..1d4dcaa75f 100755 --- a/wnf.py +++ b/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