Change shebang used in CLI demo. (#7389)

Change from system Python to environment python3.  For Ubuntu 20.04, only `python3` is
available and there's no `python`.  So at least `python3` is consistent with Python
virtual env, Ubuntu and anaconda.
This commit is contained in:
Jiaming Yuan 2021-11-02 22:11:19 +08:00 committed by GitHub
parent a55d43ccfd
commit e6ab594e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
def loadfmap( fname ): def loadfmap( fname ):
fmap = {} fmap = {}

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python3
import sys import sys
import random import random
@ -26,4 +27,3 @@ for l in fi:
fi.close() fi.close()
ftr.close() ftr.close()
fte.close() fte.close()

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
fo = open('machine.txt', 'w') fo = open('machine.txt', 'w')
cnt = 6 cnt = 6

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python3
import sys import sys
import random import random

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
import sys import sys
fo = open(sys.argv[2], 'w') fo = open(sys.argv[2], 'w')