mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Petr Viktorin
parent
c7edd7b68c
commit
4d2ef43f28
@@ -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
|
||||
|
Reference in New Issue
Block a user