Skip to content

Commit

Permalink
Update to make_release.py. Zip no longer includes any .* files. Other…
Browse files Browse the repository at this point in the history
… typo fix.
  • Loading branch information
cboulay committed Feb 29, 2016
1 parent d091b14 commit 0238bc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def zipdir(dir2zip, zipout, expand_dir = None):
# zipout is zipfile handle
for root, dirs, files in os.walk(dir2zip):
for fname in files:
if fname is not '.DS_Store':
if not fname.startswith('.'):
if expand_dir:
split_path = list(os.path.split(root))
split_path[0] = expand_dir
Expand Down Expand Up @@ -60,10 +60,10 @@ def main(argv):
filename = inspect.getframeinfo(inspect.currentframe()).filename
root_path = os.path.dirname(os.path.abspath(filename))
mfile_path = os.path.join(root_path, 'Matlab', 'xdf', 'load_xdf.m')
versionFound = False
version_found = False
with open(mfile_path) as f:
for line in f:
if not versionFound:
if not version_found:
m = re.match("LIBVERSION\s=\s'(\d+\.\d+)';", line)
if m:
mfile_version = m.group(1)
Expand Down

0 comments on commit 0238bc4

Please sign in to comment.