test
This commit is contained in:
parent
9a867f54a1
commit
53e3d1bcaa
1 changed files with 14 additions and 1 deletions
15
__main__.py
15
__main__.py
|
@ -1,5 +1,18 @@
|
||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
import file
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
pass
|
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.')
|
||||||
|
|
Loading…
Reference in a new issue