hasii2011 / pyut

A UML Diagrammer implemented in Python
GNU Affero General Public License v3.0
11 stars 4 forks source link

Move away from os.path use pathlib ♻️ #411

Closed hasii2011 closed 1 year ago

hasii2011 commented 2 years ago

Look at this article

Here is the grep

7:from os import path as osPath
350:        regularFileName: str = osPath.split(filename)[1]
352:            regularFileName = osPath.splitext(regularFileName)[0]
./org/pyut/ui/PyutProject.py
132:        from os import path as osPath
135:        shortName: str = osPath.basename(fileName)
./org/pyut/ui/PyutDocument.py
10:from os import path as osPath
799:        justFileName: str = osPath.split(filename)[1]
./org/pyut/ui/TreeNotebookHandler.py
8:from os import path as osPath
96:            while osPath.exists(filename + ".acl"):
./org/pyut/plugins/tools/ToAscii.py
3:from os import path as osPath
113:        name = osPath.join(getcwd(), 'help/index.html')
./org/pyut/dialogs/DlgHelp.py
8:from os import path as osPath
116:        if osPath.exists(source):
127:        if osPath.exists(source):
./tests/org/pyut/preferences/TestPyutPreferences.py
hasii2011 commented 1 year ago

Done on the 🤡 master 🤡 branch