<span>OpenLP currently uses string objects to represent file and directory paths. From Python 3.4 pathlib, a new module introducing a Path object, was included in the standard library.</span><br><span>Switching to this Path object will allow us to deal with file paths on different platforms easier. In some cases it also reduces LOC and in my opinion makes the code cleaner and easier to read.</span><div><br></div><div>As trb commented "[it's] cleaver and a different mindset."</div><div><br></div><div>Superfly particularly liked the proposal for storing paths in a platform independent way.</div><div><br></div><div>This is going to be a big change, so will take quite a few merges. In-between merges I will need to introduce temporary code too keep OpenLP working until I can complete this transition.</div><div><br></div><div>Finally I've created a wiki page with an explanation of the pathlib, some proposals, samples of old v new code and some differences that I have come across. Please have a read: <a href="https://wiki.openlp.org/Scratchpad:Paths">https://wiki.openlp.org/Scratchpad:Paths</a></div><div><br></div><div>Finally I would recommend the pathlib documentation at: <a href="https://docs.python.org/3.4/library/pathlib.html">https://docs.python.org/3.4/library/pathlib.html</a></div><div><br></div><div>Phill</div>