Skip to content

Commit

Permalink
update conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc committed Jan 3, 2025
1 parent cc71de3 commit 9edcd28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

def start_server_process():
azure_http_path = Path(os.path.dirname(__file__)) / Path("../../../node_modules/@azure-tools/azure-http-specs")
http_path = Path(os.path.dirname(__file__)) / Path("../../node_modules/@typespec/http-specs")
http_path = Path(os.path.dirname(__file__)) / Path("../../../node_modules/@typespec/http-specs")
os.chdir(azure_http_path.resolve())
cmd = f"npx tsp-spector serve ./specs {(http_path / 'specs').resolve()}"
cmd = f"npx tsp-spector serve ./specs {(http_path / 'specs').resolve()}"
if os.name == "nt":
return subprocess.Popen(cmd, shell=True)
return subprocess.Popen(cmd, shell=True, preexec_fn=os.setsid)
Expand Down

0 comments on commit 9edcd28

Please sign in to comment.