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
Fixed #42 -- use a user cache directory #43
Conversation
cache_dir = AppDirs("rply").user_cache_dir | ||
cache_file = os.path.join( | ||
cache_dir, | ||
"rply-%s-%s-%s.json" % ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't need to start this filename with "rply" since it's going to be in a directory called "rply", but it doesn't hurt to have it either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
On Tue, Sep 1, 2015 at 7:23 AM, Donald Stufft notifications@github.com
wrote:
In rply/parsergenerator.py
#43 (comment):
self.VERSION, self.cache_id, self.compute_grammar_hash(g)
)
)
else:
cache_file = os.path.join(
tempfile.gettempdir(),
"rply-%s-%s-%s-%s.json" % (
self.VERSION,
os.getuid(),
self.cache_id,
self.compute_grammar_hash(g)
)
cache_dir = AppDirs("rply").user_cache_dir
cache_file = os.path.join(
cache_dir,
"rply-%s-%s-%s.json" % (
You probably don't need to start this filename with "rply" since it's
going to be in a directory called "rply", but it doesn't hurt to have it
either.—
Reply to this email directly or view it on GitHub
https://github.com/alex/rply/pull/43/files#r38408431.
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084
Small comment, looks fine to me though. |
Fixed #42 -- use a user cache directory
No description provided.