History

setup.py: move cut and cmd inside aubio module, use entry_points to generate scripts

Paul Brossier committed 9 years ago

Commit 8e2f36a1 parent 1f00b693 files · +8 −3Browse files

Showing the changes to python (2 of 3 files). Show all

Unified · Split

2 files
  1. python/lib/aubio/cmd.py +1 −1
  2. python/lib/aubio/cut.py +1 −1
python/lib/aubio/cmd.pyrenamed from python/scripts/aubio+1−1
@@ -313,7 +313,7 @@ class process_melbands(default_process): · 312 unmodified lines
313313 fmt_out += ' '.join(["% 9.7f" % f for f in res.tolist()])
314314 sys.stdout.write(fmt_out + '\n')
315315
316−if __name__ == '__main__':
316+def main():
317317 parser = aubio_parser()
318318 args = parser.parse_args()
319319 if args.show_version or ('verbose' in args and args.verbose > 3):
python/lib/aubio/cut.pyrenamed from python/scripts/aubiocut+1−1
@@ -140,7 +140,7 @@ def parse_args(): · 139 unmodified lines
140140 sys.exit(1)
141141 return options, args
142142
143−if __name__ == '__main__':
143+def main():
144144 options, args = parse_args()
145145
146146 hopsize = options.hopsize

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t