Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'test.txt')
- os.remove(path)
- import os
- path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'TestDir')
- os.rmdir(path)
- import os
- import shutil
- path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'TestDir')
- shutil.rmtree(path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement