Mercurial > kallithea
comparison kallithea/lib/paster_commands/ishell.py @ 5998:037efd94e955
cleanup: get rid of dn as shortcut for os.path.dirname
We keep 'dirname' as shortcut despite having removed the 'join' shortcut:
* the name is less ambiguous than 'join'.
* dirname is often applied multiple times - spelling it out would be too
verbose.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Mon, 13 Jun 2016 21:39:47 +0200 |
parents | 624d57352745 |
children | e0f31c7d0f5e |
comparison
equal
deleted
inserted
replaced
5997:b313d735d9c8 | 5998:037efd94e955 |
---|---|
30 import sys | 30 import sys |
31 | 31 |
32 from kallithea.lib.utils import BasePasterCommand | 32 from kallithea.lib.utils import BasePasterCommand |
33 | 33 |
34 # Add location of top level folder to sys.path | 34 # Add location of top level folder to sys.path |
35 from os.path import dirname as dn | 35 from os.path import dirname |
36 rc_path = dn(dn(dn(os.path.realpath(__file__)))) | 36 rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) |
37 sys.path.append(rc_path) | 37 sys.path.append(rc_path) |
38 | 38 |
39 | 39 |
40 class Command(BasePasterCommand): | 40 class Command(BasePasterCommand): |
41 | 41 |