crest icon indicating copy to clipboard operation
crest copied to clipboard

A argument similar to the namespace in xtb

Open xiki-tempula opened this issue 4 years ago • 2 comments

I'm interested in putting the output files into a specific folder instead of the current directory. In xtb, I could use namespace to control where the files will be stored, I wonder if I could do similar thing with crest? Thank you.

xiki-tempula avatar Oct 28 '21 15:10 xiki-tempula

Yes, this is in principle possible with xtb by exploiting the way the namespacing just adds the namespace string in front of every normal file (hidden files create by xtb will be handled differently for namespacing!). But the directory and its hidden counterpart of course have to exist otherwise it just errors.

The trick in xtb is to have a specific subroutine which is called to open files instead of using open directly, this allows to consistently impose a global namespace. A similar strategy could be applied in crest as well, but it requires some careful consideration since crest can also write files for starting other programs, those must not end up getting namespaces without crest being aware about the changed file name.

awvwgk avatar Oct 28 '21 19:10 awvwgk

@awvwgk Thanks for the in-depth explanation. I wonder if there is any keyword that I could use to transfer all the files generated by crest to a specified folder or do they have to be in the present folder?

xiki-tempula avatar Oct 28 '21 19:10 xiki-tempula

This issue had no activity for 6 months. It will be closed in 1 week unless there is some new activity.

github-actions[bot] avatar Jan 30 '24 01:01 github-actions[bot]