This changes the use of split() to the use of the pathlib module where possible. It makes the extraction of information from the path more readable and also fixes a bug occurring when executing runFABulous_bitstream (as mentioned in #130).
The current version also features a function to first check the OS type and then choose which function to use for reading the path depending on the OS. This is optional and could also be removed if it is not needed (does FABulous even run on non UNIX-systems?).
Thanks to @KelvinChung2000 for the suggestion to use pathlib!
This changes the use of
split()
to the use of thepathlib
module where possible. It makes the extraction of information from the path more readable and also fixes a bug occurring when executing runFABulous_bitstream (as mentioned in #130).The current version also features a function to first check the OS type and then choose which function to use for reading the path depending on the OS. This is optional and could also be removed if it is not needed (does FABulous even run on non UNIX-systems?).
Thanks to @KelvinChung2000 for the suggestion to use
pathlib
!