From e7462499d92972b20fef01f7b266257679e79c42 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 27 Jun 2011 10:58:32 +0530 Subject: [PATCH] fix to install.py --- cgi-bin/webnotes/install_lib/install.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cgi-bin/webnotes/install_lib/install.py b/cgi-bin/webnotes/install_lib/install.py index 2a014b4398..e4791b66e9 100755 --- a/cgi-bin/webnotes/install_lib/install.py +++ b/cgi-bin/webnotes/install_lib/install.py @@ -21,6 +21,9 @@ def copy_defs(): # class Installer: def __init__(self, root_login, root_password): + + import webnotes + import webnotes.db self.root_password = root_password from webnotes.model.db_schema import DbManager @@ -35,6 +38,8 @@ class Installer: # run framework related cleanups # def framework_cleanups(self, target): + + import webnotes self.dbman.drop_table('__DocTypeCache') webnotes.conn.sql("create table `__DocTypeCache` (name VARCHAR(120), modified DATETIME, content TEXT, server_code_compiled TEXT)") @@ -48,6 +53,7 @@ class Installer: Imports the "Core" module from .txt file and creates Creates profile Administrator """ + import webnotes from webnotes.modules.import_module import import_module from webnotes.modules.module_manager import reload_doc