Skip to content

Commit

Permalink
upgrade helper.py (Rack SDK 1.1.6)
Browse files Browse the repository at this point in the history
* add comments
  • Loading branch information
mzuther committed Jul 6, 2020
1 parent cfefcd1 commit f006427
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions helper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env python3

# this file has been copied and adapted from VCV Rack SDK:
#
# - change tabs to spaces (PEP 8)
# - sort components by name
# - this comment :)

import sys
import os
import re
Expand Down Expand Up @@ -93,7 +99,8 @@ def create_plugin(slug, plugin_dir=None):
f.write(makefile)

# Create plugin.hpp
plugin_hpp = """#include <rack.hpp>
plugin_hpp = """#pragma once
#include <rack.hpp>
using namespace rack;
Expand Down Expand Up @@ -199,7 +206,7 @@ def create_module(slug, panel_filename=None, source_filename=None):
module_manifest['slug'] = slug
module_manifest['name'] = input_default("Module name", slug)
module_manifest['description'] = input_default("One-line description (optional)")
tags = input_default("Tags (comma-separated, case-insensitive, see https://github.com/VCVRack/Rack/blob/v1/src/plugin.cpp#L511-L571 for list)")
tags = input_default("Tags (comma-separated, case-insensitive, see https://github.com/VCVRack/Rack/blob/v1/src/tag.cpp for list)")
tags = tags.split(",")
tags = [tag.strip() for tag in tags]
if len(tags) == 1 and tags[0] == "":
Expand Down

0 comments on commit f006427

Please sign in to comment.