Skip to content

Commit 69bb837

Browse files
committed
Temporary: Additional prints in venv for debugging
1 parent b3b0273 commit 69bb837

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

python/arcticdb/util/venv.py

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
import os
3+
import re
34
import shutil
45
import subprocess
56
import tempfile
@@ -127,6 +128,17 @@ def execute(self, python_commands: List[str], dfs: Optional[Dict] = None) -> Non
127128
+ python_commands
128129
)
129130

131+
# Add prints for tracebility
132+
def add_prints(python_commands):
133+
python_command_str = "\n".join(python_commands)
134+
result = []
135+
for command in python_command_str.split("\n"):
136+
result.append(f"print('About to run:', {repr(command)})")
137+
result.append(command)
138+
result.append(f"print('Done with:', {repr(command)})")
139+
return result
140+
python_commands = add_prints(python_commands)
141+
130142
python_path = os.path.join(dir, "run.py")
131143
with open(python_path, "w") as python_file:
132144
python_file.write("\n".join(python_commands))

0 commit comments

Comments
 (0)