Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find *.sav files from the path #241

Open
tueda opened this issue Nov 23, 2017 · 3 comments
Open

Cannot find *.sav files from the path #241

tueda opened this issue Nov 23, 2017 · 3 comments

Comments

@tueda
Copy link
Collaborator

tueda commented Nov 23, 2017

In #240 I assumed FORM tries to find also *.sav files (for a library) from the path, but actually not.

ls -R
.:
foo/  test.frm

./foo:
TablesX.sav
cat test.frm
Load TablesX.sav;
.end

Then all of the following commands fail:

FORMPATH=foo form test.frm
form -p foo test.frm
form -I foo test.frm
FORM 4.2.0 (Oct 26 2017, v4.2.0-22-g954024f) 64-bits  Run: Thu Nov 23 14:55:22 2017
    Load TablesX.sav;
Cannot open file TablesX.sav
    .end
Program terminating at test.frm Line 1 --> 
  0.00 sec out of 0.00 sec

Is this intended behavour?

@vermaseren
Copy link
Owner

vermaseren commented Nov 23, 2017 via email

@tueda
Copy link
Collaborator Author

tueda commented Nov 23, 2017

The philosophy behind this is that libraries are rather general things and .sav files belong to a specific project or calculation.

It makes sense.

Then the question would be how a library can find its absolute path to the directory where it is sitting. If this could be possible, then a library can specify the absolute file names of binary *.sav files belonging to the library, which is generated during the installation (e.g., make).

@vermaseren
Copy link
Owner

vermaseren commented Nov 23, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants