diff --git a/rhodecode/lib/paster_commands/repo_scan.py b/rhodecode/lib/paster_commands/repo_scan.py --- a/rhodecode/lib/paster_commands/repo_scan.py +++ b/rhodecode/lib/paster_commands/repo_scan.py @@ -32,7 +32,7 @@ import logging from rhodecode.model.scm import ScmModel from rhodecode.lib.utils import BasePasterCommand, repo2db_mapper -# fix rhodecode import +# Add location of top level folder to sys.path from os.path import dirname as dn rc_path = dn(dn(dn(os.path.realpath(__file__)))) sys.path.append(rc_path)