Currently, most of the file paths (if not all) of the file paths are absolute file paths hardcoded in. This won’t fly if the program is installed literally anywhere else.
It looks like we can use os.path.dirname and os.path.abspath with __file__ to retrieve the file paths at runtime.
Currently, most of the file paths (if not all) of the file paths are absolute file paths hardcoded in. This won’t fly if the program is installed literally anywhere else.
It looks like we can use
os.path.dirname
andos.path.abspath
with__file__
to retrieve the file paths at runtime.