nga-27 / fantasy-football-scratchpad

Utilizing the ESPN fantasy football APIs to help manage two leagues combine simultaneously.
0 stars 1 forks source link

upgrading from the os module to the pathlib module #11

Closed olber027 closed 3 years ago

olber027 commented 3 years ago

https://towardsdatascience.com/dont-use-python-os-library-any-more-when-pathlib-can-do-141fefb6bdb5 Got rid of some global constants. Made the scripts we'll directly run use the if name == "main" idiom and allowing them to take arguments.

nga-27 commented 3 years ago

I appreciate the article. I assumed they were just different views of the same convention, but there are some more useful and cleaner abilities with pathlib than with plain old os. Love this joint dev!