rwx/__main__.py

19 lines
460 B
Python
Raw Normal View History

2023-03-28 21:54:38 +00:00
#! /usr/bin/env python3
2023-07-17 19:05:06 +00:00
import os
import file
2023-03-28 21:54:38 +00:00
if __name__ == '__main__':
2023-07-17 19:05:06 +00:00
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.')