I created a reddit scraper which will download pictures from reddit and change my wallpaper. It works the way I want it to without any issues. I created an executable for the app using cx_Freeze with the following setup.py
from cx_Freeze import setup, Executable
base = "Win32GUI" # Without Console
# base = None ## With Console
includefiles = ["WallpaperUpdater.ico", "templates/"]
executables = Executable(
script="WallpaperUpdater.py",
base=base,
icon="WallpaperUpdater.ico"
)
packages = ["idna", "requests", "multiprocessing"]
options = {
"build_exe":
{
"packages": packages,
"include_files": includefiles
},
}
setup(
name="Wallpaper Updater",
options=options,
version="0.1",
description="Downloads top images form subreddits and change wallpaper",
executables=[executables]
)
Modules other than stock modules being used -
- Praw
- PyQt5
- schedule
This issue is when I try to build it without the console it does not work. I think it does not send a message to the socket to retrieve the refresh token. But this works when I build it with the console.
Would appreciate any help. Thank you.