Skip to content

Commit 8739313

Browse files
committed
Fix pyhon include
1 parent 1c55f6a commit 8739313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigbashview/usr/lib/bbv/server/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def include_php(self, html_content, script, original_string):
135135

136136
def include_python(self, html_content, script, original_string):
137137
try:
138-
result = subprocess.check_output(['python3', script], stderr=subprocess.STDOUT)
138+
result = subprocess.check_output(['python', '-c', script], stderr=subprocess.STDOUT)
139139
html_content = html_content.replace(original_string, result.decode())
140140
except subprocess.CalledProcessError as e:
141141
html_content = html_content.replace(original_string, f"Error executing Python script: {e.output.decode()}")

0 commit comments

Comments
 (0)