ipaplatform: Move all filesystem paths to ipaplatform.paths module

https://fedorahosted.org/freeipa/ticket/4052

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Tomas Babej
2014-05-29 14:47:17 +02:00
committed by Petr Viktorin
parent c7edd7b68c
commit 4d2ef43f28
61 changed files with 743 additions and 470 deletions

View File

@@ -105,6 +105,7 @@ current block assignments:
from ipalib.text import ngettext as ungettext
import messages
from ipaplatform.paths import paths
class PrivateError(StandardError):
@@ -142,7 +143,7 @@ class SubprocessError(PrivateError):
The exit code of the sub-process is available via the ``returncode``
instance attribute. For example:
>>> e = SubprocessError(returncode=1, argv=('/bin/false',))
>>> e = SubprocessError(returncode=1, argv=(paths.BIN_FALSE,))
>>> e.returncode
1
>>> e.argv # argv is also available