Skip to content

Use proper python executable and paths #8536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/inference/extra_model_paths.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Config for testing nodes
testing:
custom_nodes: tests/inference/testing_nodes
custom_nodes: testing_nodes

6 changes: 5 additions & 1 deletion tests/inference/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import urllib.parse
import urllib.error
from comfy_execution.graph_utils import GraphBuilder, Node
import os
import sys

PYTHON_EXECUTABLE_PATH = os.path.realpath(sys.executable)

class RunResult:
def __init__(self, prompt_id: str):
Expand Down Expand Up @@ -125,7 +129,7 @@ class TestExecution:
def _server(self, args_pytest, request):
# Start server
pargs = [
'python','main.py',
PYTHON_EXECUTABLE_PATH,'main.py',
'--output-directory', args_pytest["output_dir"],
'--listen', args_pytest["listen"],
'--port', str(args_pytest["port"]),
Expand Down
5 changes: 4 additions & 1 deletion tests/inference/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
import uuid
import urllib.request
import urllib.parse
import sys



from comfy.samplers import KSampler

"""
These tests generate and save images through a range of parameters
"""
PYTHON_EXECUTABLE_PATH = os.path.realpath(sys.executable)

class ComfyGraph:
def __init__(self,
Expand Down Expand Up @@ -152,7 +155,7 @@ class TestInference:
def _server(self, args_pytest):
# Start server
p = subprocess.Popen([
'python','main.py',
PYTHON_EXECUTABLE_PATH,'main.py',
'--output-directory', args_pytest["output_dir"],
'--listen', args_pytest["listen"],
'--port', str(args_pytest["port"]),
Expand Down