Add import sys to ifmain, defmain.
This commit is contained in:
parent
3876e7b02a
commit
11ef6504bb
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
<snippet>
|
<snippet>
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
|
import sys
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<snippet>
|
<snippet>
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
|
import sys
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
raise SystemExit(main(sys.argv[1:]))
|
raise SystemExit(main(sys.argv[1:]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue