altlinux-autorepacked/autorepacked/utils.py

19 lines
314 B
Python
Raw Permalink Normal View History

2024-01-16 20:45:06 +03:00
import subprocess
def run(args, cwd=None):
return subprocess.run(
args=args,
cwd=cwd,
stdout=subprocess.PIPE,
).stdout.decode('utf-8')
2024-01-17 15:36:11 +03:00
def epm(args, cwd=None):
return run(["epm"] + args, cwd=cwd)
def eget(args, cwd=None):
return epm(["tool", "eget"] + args, cwd=cwd)