comparison rhodecode/lib/paster_commands/ishell.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 44d173a8136f
children ffd45b185016
comparison
equal deleted inserted replaced
3914:424b6c711a7f 3915:a42bfe8a9335
27 27
28 import os 28 import os
29 import sys 29 import sys
30 import logging 30 import logging
31 31
32 from os.path import dirname as dn, join as jn 32 from rhodecode.lib.utils import BasePasterCommand
33 #to get the rhodecode import 33
34 # fix rhodecode import
35 from os.path import dirname as dn
34 rc_path = dn(dn(dn(os.path.realpath(__file__)))) 36 rc_path = dn(dn(dn(os.path.realpath(__file__))))
35 sys.path.append(rc_path) 37 sys.path.append(rc_path)
36 from rhodecode.lib.utils import BasePasterCommand
37
38 38
39 log = logging.getLogger(__name__) 39 log = logging.getLogger(__name__)
40 40
41 41
42 class Command(BasePasterCommand): 42 class Command(BasePasterCommand):