fairandsmart / facogen

GNU General Public License v3.0
4 stars 1 forks source link

Simplify path handling to work in Windows & Linux #12

Open RolandasDMSTI opened 1 year ago

RolandasDMSTI commented 1 year ago

new File("").getAbsolutePath() in Windows gets current path like C:\Repos\facogen, which will have no forward slashes lastIndexOf('/') searches for. In fact, there is no need to know the name of the current directory here, we can just address it using "./"