I have a python script that I compiled to an EXE, one of the purposes of it is to extract a 7z file and save it to a destination.
If I'm running it from PyCharm everything works great, this is the code:

```
    def delete_old_version_rename_new(self):
        winutils.delete(self.old_version)
        print("Extracting...")
        Archive(f"{self.new_version}_0.7z").extractall(f"{self.destination}")
        print("Finished")
        os.rename(self.new_version, self.new_name)

```

I used pyinstaller to compile the program and used to command `pyinstaller --onefile --paths {path to site packages} main.py`

Thanks!