aboutsummaryrefslogtreecommitdiffstats
path: root/po/xgettext_sh
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-11 14:51:28 +0200
committerDee'Kej <deekej@linuxmail.org>2018-05-11 15:09:06 +0200
commit1d8958cd062c9c5051d93b8d3b946a4384451374 (patch)
tree01f71ae0a4f4a3eea5e4dbfa3fb00b17ff3f58c4 /po/xgettext_sh
parentd5441752d999207d2d767493a77f8eff959dd3c3 (diff)
downloadinitscripts-1d8958cd062c9c5051d93b8d3b946a4384451374.tar
initscripts-1d8958cd062c9c5051d93b8d3b946a4384451374.tar.gz
initscripts-1d8958cd062c9c5051d93b8d3b946a4384451374.tar.bz2
initscripts-1d8958cd062c9c5051d93b8d3b946a4384451374.tar.xz
initscripts-1d8958cd062c9c5051d93b8d3b946a4384451374.zip
po/xgettext_sh*: converted to use to python3
Also, the code has been fixed to comply with PEP8 specification. More info: https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
Diffstat (limited to 'po/xgettext_sh')
-rw-r--r--po/xgettext_sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/po/xgettext_sh b/po/xgettext_sh
index a9f1f6de..d0550ce6 100644
--- a/po/xgettext_sh
+++ b/po/xgettext_sh
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# xgettext_sh -- extracts translatable strings from a shell script
# Copyright (C) 1999 Conectiva Consultoria e Desenvolvimento de Sistemas LTDA
@@ -18,10 +18,11 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
from sys import path
+
if not '/usr/lib/conectiva/xgettext_sh' in path:
path[:0] = ['/usr/lib/conectiva/xgettext_sh']
from xgettext_sh import main
if __name__ == '__main__':
- main()
+ main()