Skip to content

Commit f8398ee

Browse files
committed
Use os path join in script
1 parent 0f7d000 commit f8398ee

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

scripts/gen_protos_docker.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33

44
# Build the Docker image and capture its ID
55
result = subprocess.run(
6-
["docker", "build", "-q", "-f", "scripts/_proto/Dockerfile", "."],
6+
[
7+
"docker",
8+
"build",
9+
"-q",
10+
"-f",
11+
os.path.join("scripts", "_proto", "Dockerfile"),
12+
".",
13+
],
714
capture_output=True,
815
text=True,
916
check=True,
@@ -16,13 +23,15 @@
1623
"run",
1724
"--rm",
1825
"-v",
19-
f"{os.getcwd()}/temporalio/api:/api_new",
26+
os.path.join(os.getcwd(), "temporalio", "api") + ":/api_new",
2027
"-v",
21-
f"{os.getcwd()}/temporalio/bridge/proto:/bridge_new",
28+
os.path.join(os.getcwd(), "temporalio", "bridge", "proto") + ":/bridge_new",
2229
image_id,
2330
],
2431
check=True,
2532
)
2633
subprocess.run(["uv", "run", "poe", "format"], check=True)
2734

28-
subprocess.run(["uv", "run", f"{os.getcwd()}/scripts/gen_visitors.py"], check=True)
35+
subprocess.run(
36+
["uv", "run", os.path.join(os.getcwd(), "scripts", "gen_visitors.py")], check=True
37+
)

0 commit comments

Comments
 (0)