Mercurial > kallithea
diff 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 |
line wrap: on
line diff
--- a/kallithea/lib/paster_commands/ishell.py Sun Jun 12 21:21:43 2016 +0200 +++ b/kallithea/lib/paster_commands/ishell.py Mon Jun 13 21:39:47 2016 +0200 @@ -32,8 +32,8 @@ from kallithea.lib.utils import BasePasterCommand # 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__)))) +from os.path import dirname +rc_path = dirname(dirname(dirname(os.path.realpath(__file__)))) sys.path.append(rc_path)