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

Fixed #42 -- use a user cache directory #43

Merged
merged 10 commits into from Sep 1, 2015
Merged

Fixed #42 -- use a user cache directory #43

merged 10 commits into from Sep 1, 2015

Conversation

alex
Copy link
Owner

@alex alex commented Sep 1, 2015

No description provided.

cache_dir = AppDirs("rply").user_cache_dir
cache_file = os.path.join(
cache_dir,
"rply-%s-%s-%s.json" % (
Copy link

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.

Copy link
Owner Author

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

@dstufft
Copy link

dstufft commented Sep 1, 2015

Small comment, looks fine to me though.

alex added a commit that referenced this pull request Sep 1, 2015
Fixed #42 -- use a user cache directory
@alex alex merged commit 518f798 into master Sep 1, 2015
@alex alex deleted the user-cache branch September 1, 2015 12:25
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.

None yet

2 participants