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

Make temp directory configurable #25

Closed
uliska opened this issue Jan 15, 2018 · 2 comments
Closed

Make temp directory configurable #25

uliska opened this issue Jan 15, 2018 · 2 comments

Comments

@uliska
Copy link
Collaborator

uliska commented Jan 15, 2018

Apart from generally being not nice to hard-code directory names making the ly_tmp directory configurable should be implemented to help #24. Purging the temp directory would not be possible if there are multiple .tex files in the original directory (which now share the temp directory).

@jperon
Copy link
Owner

jperon commented Jan 15, 2018

Yes or not. One advantage of the sharing of a directory would be that, if two documents with same properties (width, size etc.) use the same score, it wouldn't get compiled two times. And we could write lists dependent on the name of the original .tex to let users choose which files they want to remove. I think it would be an argument againts the purge option, and to let users remove unnecessary files with their own commands.

That said, I agree that hard-code is generally a bad thing, and that letting users choose what they prefer is a good one. So we could add an optional argument to change the default tmp_ly, and a purge option ; users who don't want to use them won't have to change anything, those who want will be able to.

@uliska
Copy link
Collaborator Author

uliska commented Jan 15, 2018

One advantage of the sharing of a directory would be that, if two documents with same properties (width, size etc.) use the same score, it wouldn't get compiled two times.

This is indeed a good argument. But of course I didn't want to suggest to have individual temp directories per document but the option to have them. I agree that the default use case would probably be to have one shared temp directory and leave all files as they are, doing the clean-up with some other tools and schedules.

Having the possibility to have a shared or individual temp directories will in any way add flexibility for users to create their workflows. And since there's a reasonable default they don't have to bother with it.

@jperon jperon closed this as completed in 33eca91 Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants