Skip to content

Commit 0238bc4

Browse files
committed
Update to make_release.py. Zip no longer includes any .* files. Other typo fix.
1 parent d091b14 commit 0238bc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

make_release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def zipdir(dir2zip, zipout, expand_dir = None):
2626
# zipout is zipfile handle
2727
for root, dirs, files in os.walk(dir2zip):
2828
for fname in files:
29-
if fname is not '.DS_Store':
29+
if not fname.startswith('.'):
3030
if expand_dir:
3131
split_path = list(os.path.split(root))
3232
split_path[0] = expand_dir
@@ -60,10 +60,10 @@ def main(argv):
6060
filename = inspect.getframeinfo(inspect.currentframe()).filename
6161
root_path = os.path.dirname(os.path.abspath(filename))
6262
mfile_path = os.path.join(root_path, 'Matlab', 'xdf', 'load_xdf.m')
63-
versionFound = False
63+
version_found = False
6464
with open(mfile_path) as f:
6565
for line in f:
66-
if not versionFound:
66+
if not version_found:
6767
m = re.match("LIBVERSION\s=\s'(\d+\.\d+)';", line)
6868
if m:
6969
mfile_version = m.group(1)

0 commit comments

Comments
 (0)