Closed rayeaster closed 2 years ago
Thanks. But it will breaks the semantics of smile.home
that should point to the top directory of installation. This may cause issues with smile shell where smile.home
is set in the startup script.
Thanks. But it will breaks the semantics of
smile.home
that should point to the top directory of installation. This may cause issues with smile shell wheresmile.home
is set in the startup script.
how about introduce another variable specific for testing data like smile.data
so it could avoid string concatenation and keep existing smile.home
semantic intact
Try this for line 40
return java.nio.file.Paths.get(home + File.separator + "data", path);
It should be platform independent.
Try this for line 40
return java.nio.file.Paths.get(home + File.separator + "data", path);
It should be platform independent.
It works and PR updated accordingly
Thanks!
It might help to add
/data
sub-folder in default system property value directly instead using string concatenation later. And plain string concatenation would encounter path seperator issue across platforms like Linux(using/
) and Windows (using\\
in Java).For example, in Windows, with proposed change, developer could run the unit test with java option
-Dsmile.home=C:\smile\shell\src\universal\data
to override the default value