Closed rpanderson closed 4 years ago
Good catch! Remove the left-in printlines and I'll merge.
I knew there'd be one or two things like that coming up. Although pathlib is great, there are still plenty of APIs that require strings. I've gone with the philosophy of storing Paths
in the application, and only converting to string last-second when needed, kinda like always working with strings in-app and only encoding/decoding at boundaries. It's a bit rough but better than inconsistently having some paths as strings and some as Path
s within the application.
Although pathlib is great, there are still plenty of APIs that require strings.
Yeah, there are plenty of examples of this, e.g. shutil.move
(fixed in Python 3.9).
I've gone with the philosophy of storing Paths in the application, and only converting to string last-second when needed.
Ditto.
Required for Python < 3.8, which otherwise fails in
launcher.py
.Testing confirms this, i.e. example app does not launch successfully when shortcut is invoked: example.