Skip to content

Commit 0fd56ca

Browse files
committed
fix venv
1 parent 230c62d commit 0fd56ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Analysis/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import socket
1212
import subprocess
1313
import time
14+
import sys
1415
from django.shortcuts import render, redirect
1516
from django.conf import settings
1617

@@ -173,7 +174,7 @@ def index(request):
173174
print("🚀 Starte Django-Q2 Manager...")
174175
# Startet den Prozess im Hintergrund
175176
subprocess.Popen(
176-
[os.path.join(settings.BASE_DIR, 'venv/bin/python'), 'manage.py', 'qcluster'],
177+
[sys.executable, 'manage.py', 'qcluster'],
177178
cwd=settings.BASE_DIR
178179
)
179180
return redirect('index')

0 commit comments

Comments
 (0)