[py] minor, replace exit with sys.exit
This commit is contained in:
parent
a07672d353
commit
6a2b0ba78a
|
@ -5,7 +5,7 @@
|
||||||
import os, sys, shutil
|
import os, sys, shutil
|
||||||
|
|
||||||
if len (sys.argv) < 3:
|
if len (sys.argv) < 3:
|
||||||
exit (__doc__)
|
sys.exit (__doc__)
|
||||||
|
|
||||||
OUTPUT = sys.argv[1]
|
OUTPUT = sys.argv[1]
|
||||||
CURRENT_SOURCE_DIR = sys.argv[2]
|
CURRENT_SOURCE_DIR = sys.argv[2]
|
||||||
|
|
|
@ -6,10 +6,10 @@ import os, os.path, sys, subprocess, shutil, tempfile
|
||||||
|
|
||||||
ragel = shutil.which ('ragel')
|
ragel = shutil.which ('ragel')
|
||||||
if not ragel:
|
if not ragel:
|
||||||
exit ('You have to install ragel if you are going to develop HarfBuzz itself')
|
sys.exit ('You have to install ragel if you are going to develop HarfBuzz itself')
|
||||||
|
|
||||||
if len (sys.argv) < 4:
|
if len (sys.argv) < 4:
|
||||||
exit (__doc__)
|
sys.exit (__doc__)
|
||||||
|
|
||||||
OUTPUT = sys.argv[1]
|
OUTPUT = sys.argv[1]
|
||||||
CURRENT_SOURCE_DIR = sys.argv[2]
|
CURRENT_SOURCE_DIR = sys.argv[2]
|
||||||
|
|
Loading…
Reference in New Issue