mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-03 01:18:00 +03:00
0f9d89e069
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
20 lines
368 B
Python
20 lines
368 B
Python
#!/usr/bin/env python3
|
|
|
|
import argparse
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("sharepath")
|
|
parser.add_argument("pkgname")
|
|
parser.add_argument("filename")
|
|
|
|
args = parser.parse_args()
|
|
|
|
print(f"""#!/usr/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
sys.path.insert(0, "{args.sharepath}")
|
|
from {args.pkgname} import {args.filename}
|
|
|
|
{args.filename}.runcli()""")
|