Skip to content

Commit 36114fa

Browse files
committed
composable path for AMP's
1 parent 8f1ab31 commit 36114fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,10 @@ async def perform_upgrade():
13281328

13291329
# 3. Run build_client.sh
13301330
try:
1331-
subprocess.run(["python", "build/build_client.py"], check=True)
1331+
script_path = "build/build_client.py"
1332+
if os.getenv("IS_COMPOSABLE"):
1333+
script_path = os.path.join('synthetic-data-studio', script_path)
1334+
subprocess.run(["python", script_path], check=True)
13321335
frontend_rebuilt = True
13331336
messages.append("Frontend rebuilt successfully")
13341337
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)