Skip to content

Commit 0946674

Browse files
author
Peter Bengtsson
committed
made it ignore files like #models.py# from the autosaving editor
1 parent 0a1bf5b commit 0946674

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gorun.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import os
1010

11-
__version__='1.5'
11+
__version__='1.6'
1212

1313
# Prepare a lock file
1414
from tempfile import gettempdir
@@ -51,6 +51,8 @@ def _ignore_file(path):
5151
basename = os.path.basename(path)
5252
if basename.startswith('.#'):
5353
return True
54+
if basename.startswith('#') and basename.endswith('#'):
55+
return True
5456
if '.' in os.path.basename(path) and \
5557
basename.split('.')[-1] in settings.IGNORE_EXTENSIONS:
5658
return True

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def read(fname):
77
return open(os.path.join(os.path.dirname(__file__), fname)).read()
88

99
setup(name = 'python-gorun',
10-
version = '0.3',
10+
version = '1.6',
1111
description = 'Wrapper on pyinotify for running commands (often tests)',
1212
long_description = read('README.md'),
1313
author='Peter Bengtsson',

0 commit comments

Comments
 (0)