summaryrefslogtreecommitdiff
path: root/usr/src/cmd/pyzfs/pyzfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/pyzfs/pyzfs.py')
-rw-r--r--usr/src/cmd/pyzfs/pyzfs.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/src/cmd/pyzfs/pyzfs.py b/usr/src/cmd/pyzfs/pyzfs.py
index 3867d91ccd..973ffc4dc1 100644
--- a/usr/src/cmd/pyzfs/pyzfs.py
+++ b/usr/src/cmd/pyzfs/pyzfs.py
@@ -19,7 +19,7 @@
#
# CDDL HEADER END
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
@@ -36,13 +36,17 @@ try:
import zfs.ioctl
import sys
import errno
+ import solaris.misc
"""This is the main script for doing zfs subcommands. It doesn't know
what subcommands there are, it just looks for a module zfs.<subcommand>
that implements that subcommand."""
- _ = gettext.translation("SUNW_OST_OSCMD", "/usr/lib/locale",
- fallback=True).gettext
+ try:
+ _ = gettext.translation("SUNW_OST_OSCMD", "/usr/lib/locale",
+ fallback=True).gettext
+ except:
+ _ = solaris.misc.gettext
if len(sys.argv) < 2:
sys.exit(_("missing subcommand argument"))