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

Use __dirname to read in 'pragmaticprogrammer.txt' #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mshenfield
Copy link

This should fix #1. Uses the __dirname of the package to read local data files.

Use path.join to combine the two, this gives some free cross-platform support :)

This should fix sfrapoport#1. Uses the [__dirname](https://nodejs.org/docs/latest/api/globals.html#globals_dirname) of the package to read local data files.

Use `path.join` to combine the two, this gives some free cross-platform support :)
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

Successfully merging this pull request may close these issues.

"No such file or directory" error if pptip run outside of the the package root
1 participant