EranOfek / AstroPack

Astronomy & Astrophysics Software Pacakge
Other
17 stars 4 forks source link

`tools.git.getVersion` works only if astropack is installed in $HOME/matab/AstroPack #495

Closed EastEriq closed 1 month ago

EastEriq commented 1 month ago

On my computer, it is not, and the function errors out. You can easily make it work getting the actual installation path using mfilename() , i.e. replacing

    HomePath = tools.os.get_userhome;

    cd(sprintf('%s%s%s',HomePath,filesep,Args.Path));

with

cd(fileparts(mfilename('fullpath')));

at line 18 in tools.git.getVersion.m. Shall I?

EranOfek commented 1 month ago

Fixed as suggested.

EranOfek commented 1 month ago

[dev1 314fc0a1]