computer-use-ootb-internal 0.0.191__py3-none-any.whl → 0.0.193__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,19 +77,24 @@ def run_preparation(state):
77
77
 
78
78
  # Open the file with Premiere Pro maximized on Windows
79
79
  try:
80
- pr_executable = r"C:\Program Files\Adobe\Adobe Premiere Pro 2024\Adobe Premiere Pro.exe"
80
+ # Explicitly quote the executable path for the start command
81
+ pr_executable_quoted = r'"C:\Program Files\Adobe\Adobe Premiere Pro 2024\Adobe Premiere Pro.exe"'
81
82
  # Check if template exists and construct command accordingly
82
83
  if template_exists:
83
84
  log.info(f"Template file found. Attempting to open {template_file} with Premiere Pro maximized...")
84
- # Use a dummy title "PR" for start instead of empty string
85
- cmd = ['cmd', '/c', 'start', '/max', '"PR"', pr_executable, str(template_file)]
85
+ # Use empty title "" for start when executable path has spaces
86
+ cmd = ['cmd', '/c', 'start', '/max', '""', pr_executable_quoted, str(template_file)]
86
87
  else:
87
88
  log.info(f"Template file not found. Attempting to launch Premiere Pro maximized...")
88
- cmd = ['cmd', '/c', 'start', '/max', '"PR"', pr_executable]
89
+ cmd = ['cmd', '/c', 'start', '/max', '""', pr_executable_quoted]
89
90
 
90
- log.info(f"Executing command: {' '.join(cmd)}")
91
- print(f"[DEBUG] Attempting command in pr_prepare: {' '.join(cmd)}")
92
- result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
91
+ # Construct command as a single string for shell=True
92
+ cmd_string = ' '.join(cmd)
93
+ log.info(f"Executing command string with shell=True: {cmd_string}")
94
+ print(f"[DEBUG] Attempting command string in pr_prepare: {cmd_string}")
95
+
96
+ # Execute with shell=True
97
+ result = subprocess.run(cmd_string, shell=True, check=False, capture_output=True, text=True)
93
98
 
94
99
  # ADDED PRINTS for result
95
100
  print(f"[DEBUG] pr_prepare command result:")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.191
3
+ Version: 0.0.193
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -36,10 +36,10 @@ computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qf
36
36
  computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
37
37
  computer_use_ootb_internal/preparation/excel_prepare.py,sha256=cKJ035tBaDM6Yyk9eriNvvuE64GmRjaCPCcVKMdzaKY,5180
38
38
  computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=eHaDOIJnBJ9QpRPZTmFiaLwa9ZWMJaEXsM0HktkjuOo,5433
39
- computer_use_ootb_internal/preparation/pr_prepare.py,sha256=WE6PTQjpfdxDX7pdzHLuXeAddZjOaxL-vifmw_pvjek,5742
39
+ computer_use_ootb_internal/preparation/pr_prepare.py,sha256=yxfI4Nry7LF3VOgC_CPxlI-0sPkhQWu1J5KHv5ECSdw,5982
40
40
  computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=r0b19M_c1sXkN3_MRFjql8w_ThC9nZUe8zbSLYUvKS8,4635
41
41
  computer_use_ootb_internal/preparation/word_prepare.py,sha256=-SKbzckosEcOI5v2M5Pg7iFw9jTS5INJ6EoT5cHIqko,5172
42
- computer_use_ootb_internal-0.0.191.dist-info/METADATA,sha256=fxTUFDPmEwzGOkiM_OnmZsILGl4IEGJ4uhVOMTRidAY,1048
43
- computer_use_ootb_internal-0.0.191.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
- computer_use_ootb_internal-0.0.191.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
45
- computer_use_ootb_internal-0.0.191.dist-info/RECORD,,
42
+ computer_use_ootb_internal-0.0.193.dist-info/METADATA,sha256=U_X3o6Q8KkI5H2X3yn3Z-zSvXJe2l77FxdYYxzAoecY,1048
43
+ computer_use_ootb_internal-0.0.193.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
+ computer_use_ootb_internal-0.0.193.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
45
+ computer_use_ootb_internal-0.0.193.dist-info/RECORD,,