mirror of
https://github.com/Maks1mS/altlinux-autorepacked.git
synced 2024-12-24 15:04:39 +03:00
19 lines
314 B
Python
19 lines
314 B
Python
import subprocess
|
|
|
|
|
|
def run(args, cwd=None):
|
|
return subprocess.run(
|
|
args=args,
|
|
cwd=cwd,
|
|
stdout=subprocess.PIPE,
|
|
).stdout.decode('utf-8')
|
|
|
|
|
|
def epm(args, cwd=None):
|
|
return run(["epm"] + args, cwd=cwd)
|
|
|
|
|
|
def eget(args, cwd=None):
|
|
return epm(["tool", "eget"] + args, cwd=cwd)
|
|
|