Avoid python scripts "escaping" from venv
@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
from PIL import Image
def make(name, size):
import sys
class Obj:
import zmq
from pydrk import serial
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
# This file is part of DarkFi (https://dark.fi)
#
import asyncio, os, sys, tempfile
from datetime import datetime
import time
# 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: