gnieboer / GNURadio_Windows_Build_Scripts

A series of Powershell scripts to automatically download, build from source, and install GNURadio and -all- it's dependencies as 64-bit native binaries then package as an msi using Visual Studio 2015
GNU General Public License v3.0
89 stars 33 forks source link

Shebangs in D:\...\foo\bin\*.py are wrong #60

Closed moatom closed 2 years ago

moatom commented 2 years ago

I don't know whether reporting this issue here is appropriate.

Anyway, I installed GNU Radio under D:\...\foo on Windows 10 via "Download Latest GR 3.8 Installer" in http://www.gcndevelopment.com/gnuradio/index.htm.

Then, seeing gr_modtool.py, I got the following shebang on top of the file

#!C:\gr\src-stage1-dependenciescpkg\installedd-windows ools\python3\python.exe

, but this should be

#!D:\...\foo\tools\python3\python.exe

in my environment. The other .py files have the same problem.

moatom commented 2 years ago

I personally fixed this by sed -i '1c #!D:\\...\\foo\\tools\\python3\\python.exe' *.py in MINGW shell.

~~P.S. I found shebang doesn't work even on MINGW shell in the first place.~~