Changeset - 9c5f794df7cd
[Not reviewed]
default
0 9 0
Mads Kiilerich - 9 years ago 2016-09-06 00:51:18
madski@unity3d.com
paster: drop insertion of root path in sys.path

Most paster commands inserted the root of the kallithea app in sys.path ... but
only after loading all the Kallithea modules. That seems a bit pointless.
9 files changed with 0 insertions and 44 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/cache_keys.py
Show inline comments
 
@@ -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):
 

	
kallithea/lib/paster_commands/cleanup.py
Show inline comments
 
@@ -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):
 

	
kallithea/lib/paster_commands/install_iis.py
Show inline comments
 
@@ -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
kallithea/lib/paster_commands/ishell.py
Show inline comments
 
@@ -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):
 

	
kallithea/lib/paster_commands/make_index.py
Show inline comments
 
@@ -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):
 

	
kallithea/lib/paster_commands/make_rcextensions.py
Show inline comments
 
@@ -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):
 

	
kallithea/lib/paster_commands/repo_scan.py
Show inline comments
 
@@ -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):
 

	
kallithea/lib/paster_commands/setup_db.py
Show inline comments
 
@@ -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):
 

	
kallithea/lib/paster_commands/update_repoinfo.py
Show inline comments
 
@@ -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):
 

	
0 comments (0 inline, 0 general)