file ownerships

This commit is contained in:
Andreas Abel
2022-01-15 17:57:28 +01:00
parent a148f95497
commit dfbd89b928
6 changed files with 17 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import argparse
import os
import random
from plotly.offline import plot
@@ -123,6 +124,7 @@ def main():
with open(args.output ,'w') as f:
f.write('\n'.join(html))
print('Output written to ' + args.output)
os.chown(args.output, int(os.environ['SUDO_UID']), int(os.environ['SUDO_GID']))
if __name__ == "__main__":