Godley / Music-Library

Repo for all FYP work, including meeting logs, implementation, report and any other necessary documents. Will be a mix of tex, python, word and pdf documents
GNU General Public License v2.0
5 stars 3 forks source link

platform independence #309

Open Godley opened 9 years ago

Godley commented 9 years ago

In some cases commands and lines of code differ. I would suggest we should probably abstract away from just using an if statement and have a separate class which manages: a. the OS b. the lines of code to use in each instance

I would imagine this would work as a class for each OS, which has a method for each area which differs per platform. The program would request the class for the appropriate OS and use that instead of switching between multiple endings of sys.platform.