source: client/shared/scripts/getOsVersion.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: 295 bytes
Line 
1import subprocess
2import sys
3
4def main():
5    try:
6        subprocess.run(["ogGetOsVersion"] + sys.argv[1:], check=True)
7    except subprocess.CalledProcessError as e:
8        print(f"An error occurred: {e}", file=sys.stderr)
9        sys.exit(e.returncode)
10
11if __name__ == "__main__":
12    main()
Note: See TracBrowser for help on using the repository browser.