Mercurial > kallithea
diff rhodecode/lib/paster_commands/cleanup.py @ 3915:a42bfe8a9335 beta
moved make-index command to paster_commands module
- optimized imports and code
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 30 May 2013 00:01:16 +0200 |
parents | 4839bc1d89fa |
children | 5293d4bbb1ea |
line wrap: on
line diff
--- a/rhodecode/lib/paster_commands/cleanup.py Wed May 29 12:13:02 2013 +0200 +++ b/rhodecode/lib/paster_commands/cleanup.py Thu May 30 00:01:16 2013 +0200 @@ -32,15 +32,14 @@ import logging import datetime -from os.path import dirname as dn, join as jn -#to get the rhodecode import -rc_path = dn(dn(dn(os.path.realpath(__file__)))) -sys.path.append(rc_path) from rhodecode.lib.utils import BasePasterCommand, ask_ok, REMOVED_REPO_PAT - from rhodecode.lib.utils2 import safe_str from rhodecode.model.db import RhodeCodeUi +# fix rhodecode import +from os.path import dirname as dn +rc_path = dn(dn(dn(os.path.realpath(__file__)))) +sys.path.append(rc_path) log = logging.getLogger(__name__)