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

bad temp dir #5

Open
rolfn opened this issue Apr 30, 2014 · 1 comment
Open

bad temp dir #5

rolfn opened this issue Apr 30, 2014 · 1 comment

Comments

@rolfn
Copy link

rolfn commented Apr 30, 2014

The temporary output directory is created inside the parse function and relative to __dirname. This is a bad idea. At this point of execution __dirname is something like ".../node_modules/gammalatex/". It's not sure if this directory is writable. I suggest to use as default temp dir the content of process.env['TMPDIR'] with fall back to "/tmp". And additional: Make the temp dir configurable. Thanks.

...Rolf

@cscott
Copy link
Contributor

cscott commented Jul 10, 2014

Pull request #4 made the temp dir configurable.

From the comments on that PR, @rolfn requested:

In addition: I would like to have a switch (e.g. "keep:true") to indicate that the temp dir will not be removed after the LaTeX run (for debugging).

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