rwx/__main__.py
2023-07-17 21:05:06 +02:00

18 lines
460 B
Python
Executable file

#! /usr/bin/env python3
import os
import file
if __name__ == '__main__':
file_path = os.path.realpath(__file__)
root_path = os.path.dirname(file_path)
directory_path = os.path.join(root_path, 'tmp')
file_path = os.path.join(directory_path, 'file')
file.wipe(directory_path)
file.make(directory_path)
file.write(file_path, 'Martine écrit beaucoup.')
file.empty(file_path)
file.write(file_path, 'Martine écrit moins.')