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

Ignore Emacs autosave files or more generally some pattern #71

Closed
rocky opened this issue Dec 5, 2020 · 1 comment
Closed

Ignore Emacs autosave files or more generally some pattern #71

rocky opened this issue Dec 5, 2020 · 1 comment

Comments

@rocky
Copy link

rocky commented Dec 5, 2020

I think I'll like this package.

One problem I had using is that Emacs autosave files are detected. These files start with .#

I worked around this problem by changing the PythonWatcher like this:

class PythonWatcher(DefaultDirWatcher):
    def should_watch_file(self, entry):
        return entry.name.endswith(('.py', '.pyx', '.pyd')) and not entry.name.startswith(".#")

Of course there should be a more general way to do something like this.

Thanks for providing this package.

@samuelcolvin
Copy link
Owner

fixed by #70

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