computer-use-ootb-internal 0.0.185__py3-none-any.whl → 0.0.186__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.
- computer_use_ootb_internal/preparation/excel_prepare.py +4 -8
- computer_use_ootb_internal/preparation/powerpoint_prepare.py +4 -8
- computer_use_ootb_internal/preparation/pr_prepare.py +7 -9
- computer_use_ootb_internal/preparation/word_prepare.py +4 -8
- {computer_use_ootb_internal-0.0.185.dist-info → computer_use_ootb_internal-0.0.186.dist-info}/METADATA +1 -1
- {computer_use_ootb_internal-0.0.185.dist-info → computer_use_ootb_internal-0.0.186.dist-info}/RECORD +8 -8
- {computer_use_ootb_internal-0.0.185.dist-info → computer_use_ootb_internal-0.0.186.dist-info}/WHEEL +0 -0
- {computer_use_ootb_internal-0.0.185.dist-info → computer_use_ootb_internal-0.0.186.dist-info}/entry_points.txt +0 -0
@@ -79,17 +79,13 @@ def run_preparation(state):
|
|
79
79
|
# Check if template exists and construct command accordingly
|
80
80
|
if template_file.exists():
|
81
81
|
log.info(f"Template file found. Attempting to open {template_file} with Excel maximized...")
|
82
|
-
|
82
|
+
cmd = ['cmd', '/c', 'start', '/max', 'excel', str(template_file)]
|
83
83
|
else:
|
84
84
|
log.info(f"Template file not found. Attempting to launch Excel maximized...")
|
85
|
-
|
85
|
+
cmd = ['cmd', '/c', 'start', '/max', 'excel']
|
86
86
|
|
87
|
-
log.info(f"Executing command: {' '.join(
|
88
|
-
|
89
|
-
process = subprocess.Popen(cmd_args, creationflags=subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP)
|
90
|
-
log.info(f"Launched Excel process with PID: {process.pid}")
|
91
|
-
# Simulate success as Popen doesn't give immediate exit code
|
92
|
-
result = type('obj', (object,), {'returncode' : 0, 'stderr': '', 'stdout': ''})()
|
87
|
+
log.info(f"Executing command: {' '.join(cmd)}")
|
88
|
+
result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
|
93
89
|
|
94
90
|
if result.returncode == 0:
|
95
91
|
log.info(f"Successfully executed command for Excel.")
|
@@ -81,17 +81,13 @@ def run_preparation(state):
|
|
81
81
|
# Check if template exists and construct command accordingly
|
82
82
|
if template_file.exists():
|
83
83
|
log.info(f"Template file found. Attempting to open {template_file} with PowerPoint maximized...")
|
84
|
-
|
84
|
+
cmd = ['cmd', '/c', 'start', '/max', 'powerpnt', str(template_file)]
|
85
85
|
else:
|
86
86
|
log.info(f"Template file not found. Attempting to launch PowerPoint maximized...")
|
87
|
-
|
87
|
+
cmd = ['cmd', '/c', 'start', '/max', 'powerpnt']
|
88
88
|
|
89
|
-
log.info(f"Executing command: {' '.join(
|
90
|
-
|
91
|
-
process = subprocess.Popen(cmd_args, creationflags=subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP)
|
92
|
-
log.info(f"Launched PowerPoint process with PID: {process.pid}")
|
93
|
-
# Simulate success as Popen doesn't give immediate exit code
|
94
|
-
result = type('obj', (object,), {'returncode' : 0, 'stderr': '', 'stdout': ''})()
|
89
|
+
log.info(f"Executing command: {' '.join(cmd)}")
|
90
|
+
result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
|
95
91
|
|
96
92
|
if result.returncode == 0:
|
97
93
|
log.info(f"Successfully executed command for PowerPoint.")
|
@@ -77,26 +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
81
|
# Check if template exists and construct command accordingly
|
81
82
|
if template_file.exists():
|
82
83
|
log.info(f"Template file found. Attempting to open {template_file} with Premiere Pro maximized...")
|
83
|
-
# Use
|
84
|
-
|
85
|
-
cmd = ['cmd', '/c', 'start', '/max', '""', pr_executable, str(template_file)] # Use empty title "" for start
|
84
|
+
# Use empty title "" for start when executable path has spaces
|
85
|
+
cmd = ['cmd', '/c', 'start', '/max', '""', pr_executable, str(template_file)]
|
86
86
|
else:
|
87
87
|
log.info(f"Template file not found. Attempting to launch Premiere Pro maximized...")
|
88
|
-
# Use full path for the executable
|
89
|
-
pr_executable = r"C:\Program Files\Adobe\Adobe Premiere Pro 2024\Adobe Premiere Pro.exe"
|
90
88
|
cmd = ['cmd', '/c', 'start', '/max', '""', pr_executable]
|
91
89
|
|
92
90
|
log.info(f"Executing command: {' '.join(cmd)}")
|
93
|
-
result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
|
94
|
-
|
91
|
+
result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
|
92
|
+
|
95
93
|
if result.returncode == 0:
|
96
94
|
log.info(f"Successfully executed command for Premiere Pro.")
|
97
95
|
else:
|
98
|
-
log.error(f"Error
|
99
|
-
if result.stdout:
|
96
|
+
log.error(f"Error executing command for Premiere Pro: {result.stderr.strip() if result else 'Command not run'}")
|
97
|
+
if result and result.stdout:
|
100
98
|
log.error(f"Stdout from start command: {result.stdout.strip()}")
|
101
99
|
except FileNotFoundError:
|
102
100
|
log.error("Error: 'cmd' or 'start' command not found. Ensure system PATH is configured correctly.")
|
@@ -79,17 +79,13 @@ def run_preparation(state):
|
|
79
79
|
# Check if template exists and construct command accordingly
|
80
80
|
if template_file.exists():
|
81
81
|
log.info(f"Template file found. Attempting to open {template_file} with Word maximized...")
|
82
|
-
|
82
|
+
cmd = ['cmd', '/c', 'start', '/max', 'winword', str(template_file)]
|
83
83
|
else:
|
84
84
|
log.info(f"Template file not found. Attempting to launch Word maximized...")
|
85
|
-
|
85
|
+
cmd = ['cmd', '/c', 'start', '/max', 'winword']
|
86
86
|
|
87
|
-
log.info(f"Executing command: {' '.join(
|
88
|
-
|
89
|
-
process = subprocess.Popen(cmd_args, creationflags=subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP)
|
90
|
-
log.info(f"Launched Word process with PID: {process.pid}")
|
91
|
-
# Simulate success as Popen doesn't give immediate exit code
|
92
|
-
result = type('obj', (object,), {'returncode' : 0, 'stderr': '', 'stdout': ''})()
|
87
|
+
log.info(f"Executing command: {' '.join(cmd)}")
|
88
|
+
result = subprocess.run(cmd, check=False, capture_output=True, text=True, creationflags=subprocess.CREATE_NO_WINDOW)
|
93
89
|
|
94
90
|
if result.returncode == 0:
|
95
91
|
log.info(f"Successfully executed command for Word.")
|
{computer_use_ootb_internal-0.0.185.dist-info → computer_use_ootb_internal-0.0.186.dist-info}/RECORD
RENAMED
@@ -34,12 +34,12 @@ computer_use_ootb_internal/computer_use_demo/tools/edit.py,sha256=b0PwUitxckHCQq
|
|
34
34
|
computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO44CEirL9hpGy3NmKbjfMpyeVmn8Y,1595
|
35
35
|
computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
|
36
36
|
computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
|
37
|
-
computer_use_ootb_internal/preparation/excel_prepare.py,sha256=
|
38
|
-
computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=
|
39
|
-
computer_use_ootb_internal/preparation/pr_prepare.py,sha256=
|
37
|
+
computer_use_ootb_internal/preparation/excel_prepare.py,sha256=YJMdIepwhgEjcdb6rFMizUlpGViIuZ6ISsN3JlMc0c0,4690
|
38
|
+
computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=RQItrh2l4CScxZjjAlLKIxGXWvFbj3UKB09nKEcX38I,4927
|
39
|
+
computer_use_ootb_internal/preparation/pr_prepare.py,sha256=b1OBpMiHGg5kbjT9k9qsCMVKmVeP4neGBSTKBRT9uqE,5258
|
40
40
|
computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=r0b19M_c1sXkN3_MRFjql8w_ThC9nZUe8zbSLYUvKS8,4635
|
41
|
-
computer_use_ootb_internal/preparation/word_prepare.py,sha256=
|
42
|
-
computer_use_ootb_internal-0.0.
|
43
|
-
computer_use_ootb_internal-0.0.
|
44
|
-
computer_use_ootb_internal-0.0.
|
45
|
-
computer_use_ootb_internal-0.0.
|
41
|
+
computer_use_ootb_internal/preparation/word_prepare.py,sha256=XhbJQVGUx-InsHUt2MVY7wvlJEa-J-4qqYXqJ8UcV6g,4685
|
42
|
+
computer_use_ootb_internal-0.0.186.dist-info/METADATA,sha256=vZVGdzQ8dwc5lYW5JB5oZdIMqy6Hk_1hVc4Jh6HX10Y,1048
|
43
|
+
computer_use_ootb_internal-0.0.186.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
44
|
+
computer_use_ootb_internal-0.0.186.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
|
45
|
+
computer_use_ootb_internal-0.0.186.dist-info/RECORD,,
|
{computer_use_ootb_internal-0.0.185.dist-info → computer_use_ootb_internal-0.0.186.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|