diff --git a/.gitignore b/.gitignore index 1ee1173..95635f3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,8 @@ # Ignore PyCharm .idea +# +__pycache__ + + diff --git a/backup-rotator b/BackupRotator.py similarity index 98% rename from backup-rotator rename to BackupRotator.py index a96af48..992ae33 100755 --- a/backup-rotator +++ b/BackupRotator.py @@ -246,13 +246,3 @@ class BackupRotator: else: self.log("Purging directory:", dir_path) shutil.rmtree(dir_path) - - -def main(): - - rotator = BackupRotator() - rotator.run() - - -if __name__ == "__main__": - main() diff --git a/main.py b/main.py new file mode 100755 index 0000000..3161e0c --- /dev/null +++ b/main.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + + +from BackupRotator import BackupRotator + + +# +def main(): + + rotator = BackupRotator() + rotator.run() + + +if __name__ == "__main__": + main()