Skip to content

Automatically remove Python executables at exit

License

Notifications You must be signed in to change notification settings

desty2k/deleter

Repository files navigation

deleter

Build Version Version

Automatically remove python scripts from disk after execution. Main purpose is to delete single file executables generated by PyInstaller. Deleter does not support deleting mult-file scripts.

Installation

From PyPI

pip install deleter -U

From sources

git clone https://github.com/desty2k/deleter.git
cd deleter
pip install .

Usage

Delete app at exit

import deleter

deleter.register()

# your code

Cancel app deletion

import deleter

deleter.register()
# your code
# cames out that we do not need to delete app
deleter.unregister()
# executable stays on disk