python_utils/utils/bash_utils.py
M. A. Reza 0bac078316 update
2025-09-20 16:40:39 +03:30

21 lines
373 B
Python

import subprocess
def open_file_in_vscode(file_path):
subprocess.run(f"code {file_path}", check=True, text=True, shell=True)
def run_bash_commmand(command):
subprocess.run(
args=command,
check=True,
text=True,
shell=True,
)
def open_url(url):
subprocess.run(f"brave-browser {url}", check=True, text=True, shell=True)