Преглед на файлове

chore: Fix python scripts shebang

Avoid python scripts "escaping" from venv
G10h4ck преди 1 година
родител
ревизия
1a232e67ad
променени са 10 файла, в които са добавени 20 реда и са изтрити 10 реда
  1. 2 1
      bin/app/data/favico/conv.py
  2. 2 1
      bin/app/data/obj_to_rust.py
  3. 2 1
      bin/app/echo.py
  4. 1 1
      bin/deg/deg
  5. 1 1
      bin/dnet/dnet
  6. 2 1
      bin/tau/tau-python/tau
  7. 2 1
      script/lilith_spawns.py
  8. 3 1
      script/node_get-info.py
  9. 3 1
      script/nodetool.py
  10. 2 1
      script/tor-test.py

+ 2 - 1
bin/app/data/favico/conv.py

@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
 from PIL import Image
 
 def make(name, size):

+ 2 - 1
bin/app/data/obj_to_rust.py

@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
 import sys
 
 class Obj:

+ 2 - 1
bin/app/echo.py

@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
 import zmq
 from pydrk import serial
 

+ 1 - 1
bin/deg/deg

@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python
 
 # This file is part of DarkFi (https://dark.fi)
 #

+ 1 - 1
bin/dnet/dnet

@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python
 
 # This file is part of DarkFi (https://dark.fi)
 #

+ 2 - 1
bin/tau/tau-python/tau

@@ -1,4 +1,5 @@
-#!/usr/bin/python3
+#!/usr/bin/env python
+
 import asyncio, os, sys, tempfile
 from datetime import datetime
 import time

+ 2 - 1
script/lilith_spawns.py

@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
 # This file is part of DarkFi (https://dark.fi)
 #
 # Copyright (C) 2020-2025 Dyne.org foundation

+ 3 - 1
script/node_get-info.py

@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
 # This file is part of DarkFi (https://dark.fi)
 #
 # Copyright (C) 2020-2025 Dyne.org foundation
@@ -15,6 +16,7 @@
 #
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
 import asyncio, json, random, sys, time
 
 class JsonRpc:

+ 3 - 1
script/nodetool.py

@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
 # This file is part of DarkFi (https://dark.fi)
 #
 # Copyright (C) 2020-2025 Dyne.org foundation
@@ -15,6 +16,7 @@
 #
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
 import asyncio, json, random, sys, time
 
 class JsonRpc:

+ 2 - 1
script/tor-test.py

@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
 # This file is part of DarkFi (https://dark.fi)
 #
 # Copyright (C) 2020-2025 Dyne.org foundation