source: client/shared/scripts/listPrimaryPartitions.py @ 937f1b5

ogClonningEngine
Last change on this file since 937f1b5 was 937f1b5, checked in by Antonio Emmanuel Guerrero Silva <aguerrero@…>, 7 months ago

refs #693 Code migration from the scripts directory

  • Property mode set to 100644
File size: 455 bytes
Line 
1import sys
2import subprocess
3
4def og_list_primary_partitions(args):
5    try:
6        result = subprocess.run(['ogListPrimaryPartitions'] + args, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
7        print(result.stdout.decode())
8    except subprocess.CalledProcessError as e:
9        print(f"Error: {e.stderr.decode()}", file=sys.stderr)
10        sys.exit(e.returncode)
11
12if __name__ == "__main__":
13    og_list_primary_partitions(sys.argv[1:])
Note: See TracBrowser for help on using the repository browser.