diff --git a/kallithea/lib/paster_commands/cache_keys.py b/kallithea/lib/paster_commands/cache_keys.py --- a/kallithea/lib/paster_commands/cache_keys.py +++ b/kallithea/lib/paster_commands/cache_keys.py @@ -35,11 +35,6 @@ from kallithea.model.meta import Session from kallithea.lib.utils2 import safe_str from kallithea.model.db import CacheInvalidation -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(BasePasterCommand): diff --git a/kallithea/lib/paster_commands/cleanup.py b/kallithea/lib/paster_commands/cleanup.py --- a/kallithea/lib/paster_commands/cleanup.py +++ b/kallithea/lib/paster_commands/cleanup.py @@ -38,11 +38,6 @@ from kallithea.lib.utils import REMOVED_ from kallithea.lib.utils2 import safe_str from kallithea.model.db import Ui -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(BasePasterCommand): diff --git a/kallithea/lib/paster_commands/install_iis.py b/kallithea/lib/paster_commands/install_iis.py --- a/kallithea/lib/paster_commands/install_iis.py +++ b/kallithea/lib/paster_commands/install_iis.py @@ -24,10 +24,6 @@ import sys from paste.script.appinstall import AbstractInstallCommand from paste.script.command import BadCommand -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) class Command(AbstractInstallCommand): default_verbosity = 1 diff --git a/kallithea/lib/paster_commands/ishell.py b/kallithea/lib/paster_commands/ishell.py --- a/kallithea/lib/paster_commands/ishell.py +++ b/kallithea/lib/paster_commands/ishell.py @@ -31,11 +31,6 @@ import sys from kallithea.lib.paster_commands.common import BasePasterCommand -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(BasePasterCommand): diff --git a/kallithea/lib/paster_commands/make_index.py b/kallithea/lib/paster_commands/make_index.py --- a/kallithea/lib/paster_commands/make_index.py +++ b/kallithea/lib/paster_commands/make_index.py @@ -34,11 +34,6 @@ from kallithea.model.repo import RepoMod from kallithea.lib.paster_commands.common import BasePasterCommand from kallithea.lib.utils import load_rcextensions -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(BasePasterCommand): diff --git a/kallithea/lib/paster_commands/make_rcextensions.py b/kallithea/lib/paster_commands/make_rcextensions.py --- a/kallithea/lib/paster_commands/make_rcextensions.py +++ b/kallithea/lib/paster_commands/make_rcextensions.py @@ -32,11 +32,6 @@ import pkg_resources from kallithea.lib.paster_commands.common import ask_ok, BasePasterCommand -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(BasePasterCommand): diff --git a/kallithea/lib/paster_commands/repo_scan.py b/kallithea/lib/paster_commands/repo_scan.py --- a/kallithea/lib/paster_commands/repo_scan.py +++ b/kallithea/lib/paster_commands/repo_scan.py @@ -33,11 +33,6 @@ from kallithea.model.scm import ScmModel from kallithea.lib.paster_commands.common import BasePasterCommand from kallithea.lib.utils import repo2db_mapper -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(BasePasterCommand): diff --git a/kallithea/lib/paster_commands/setup_db.py b/kallithea/lib/paster_commands/setup_db.py --- a/kallithea/lib/paster_commands/setup_db.py +++ b/kallithea/lib/paster_commands/setup_db.py @@ -25,11 +25,6 @@ from paste.script.appinstall import Abst from paste.script.command import BadCommand from paste.deploy import appconfig -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(AbstractInstallCommand): diff --git a/kallithea/lib/paster_commands/update_repoinfo.py b/kallithea/lib/paster_commands/update_repoinfo.py --- a/kallithea/lib/paster_commands/update_repoinfo.py +++ b/kallithea/lib/paster_commands/update_repoinfo.py @@ -36,11 +36,6 @@ from kallithea.model.db import Repositor from kallithea.model.repo import RepoModel from kallithea.model.meta import Session -# Add location of top level folder to sys.path -from os.path import dirname -rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) -sys.path.append(rc_path) - class Command(BasePasterCommand):