Skip to content

Commit

Permalink
More #!/usr/bin/env python
Browse files Browse the repository at this point in the history
There are some more examples of things which might break:
```
$ grep -r '/usr/bin/'|grep '/usr/bin/env' -v
Makefile:       if [ -f /usr/bin/yum ] ; then yum install gmp strace python-argparse python-ply python-gevent; else apt-get install libgmp10 strace python-ply python-gevent; fi
cpp/runpython.cpp:    statok = stat("/usr/bin/python", &statbuf);
debian/connectal.install:/usr/bin/pcieflat
debian/rules:#!/usr/bin/make -f
examples/gyro_simple/test_gyro.py:            octave_file.write("#! /usr/bin/octave --persist \nv = [");
scripts/Doxyfile:PERL_PATH              = /usr/bin/perl
tests/spikehw/README.md:    Running /usr/bin/pciescan.sh
```
Of these, the three I think would break are the `runpython.cpp`,
`Doxyfile` and the `test_gyro.py`.
- The runpython.cpp possibly needs to be patched up to search along
  $PATH, which is a more substantial change so I have left it as is for
  now.
- The Doxyfile says it requires an absolute path.
- I can't just do `#! /usr/bin/env octave ...` because env doesn't do
  arguments, so I have left it as is.
  • Loading branch information
Kovacsics Robert authored and jameyhicks committed Mar 31, 2020
1 parent 725a323 commit 3f1bf05
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion examples/echopy/testecho.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014 Quanta Research Cambridge, Inc
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion generated/scripts/importbvi.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2013 Quanta Research Cambridge, Inc.
#
# Permission is hereby granted, free of charge, to any person
Expand Down
2 changes: 1 addition & 1 deletion jtag/dumptrace.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2013 Quanta Research Cambridge, Inc.
#
# Permission is hereby granted, free of charge, to any person
Expand Down
2 changes: 1 addition & 1 deletion jtag/readll.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2013 Quanta Research Cambridge, Inc.
#
# Permission is hereby granted, free of charge, to any person
Expand Down
2 changes: 1 addition & 1 deletion pcie/pcieflat
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014 Quanta Research Cambridge, Inc
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion pcie/tlp.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import os
import re
Expand Down
2 changes: 1 addition & 1 deletion scripts/boardinfo.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014 Quanta Research Cambridge, Inc.
#
# Permission is hereby granted, free of charge, to any person
Expand Down
2 changes: 1 addition & 1 deletion scripts/bsv.filter
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Usage doxyfilter_bsv.psv < infile.bsv > outfile.java

import fileinput
Expand Down
2 changes: 1 addition & 1 deletion scripts/bsvdepend.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2015 Connectal Project
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion scripts/bsvdependencies.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2015 Connectal Project
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion scripts/bsvpreprocess.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014-2015 Quanta Research Cambridge, Inc
# Copyright (c) 2015 Connectal Project
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-timing.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import sys, re

Expand Down
2 changes: 1 addition & 1 deletion scripts/extract-bvi-schedule.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2015 Connectal Project
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-constraints.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2013 Quanta Research Cambridge, Inc.
#
# Permission is hereby granted, free of charge, to any person
Expand Down
2 changes: 1 addition & 1 deletion scripts/globalv.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

globaldecls = []
globalvars = {}
Expand Down
2 changes: 1 addition & 1 deletion scripts/makefilegen.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
## Copyright (c) 2013-2014 Quanta Research Cambridge, Inc.

## Permission is hereby granted, free of charge, to any person
Expand Down
2 changes: 1 addition & 1 deletion scripts/packagesource.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import os, sys
import glob
Expand Down
2 changes: 1 addition & 1 deletion scripts/parse_qsf.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion scripts/parse_xdc.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

# parse xdc pin assignment to json

Expand Down
2 changes: 1 addition & 1 deletion scripts/portal.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2016 Connectal Project
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion scripts/reorderbytes.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014 Quanta Research Cambridge, Inc.
#
# Permission is hereby granted, free of charge, to any person
Expand Down
2 changes: 1 addition & 1 deletion scripts/syntax.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014 Quanta Research Cambridge, Inc
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
2 changes: 1 addition & 1 deletion tests/bluecheck_harness/harness.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2016 Connectal Project
#
# Permission is hereby granted, free of charge, to any person obtaining a
Expand Down

0 comments on commit 3f1bf05

Please sign in to comment.