Commit 6dba7bd6 authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.20.4 fix a bug in config.py

should use pkg name in rgrep command
parent b96885aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.20.3"
(defproject python/lein-template "0.20.4"
  :description "lein template for a python project"
  :repositories [["snapshots"
                  {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots"
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ def ensure_all_config_variable_defined():

    check_pass = True
    output = subprocess.check_output(r"""
rgrep 'CONF\.get' {{name}}/ |grep -o 'CONF\.get[a-z]\+("[^)]*")'|sed 's/.*("//; s/")//'
rgrep 'CONF\.get' {{python-pkg-name}}/ |grep -o 'CONF\.get[a-z]\+("[^)]*")'|sed 's/.*("//; s/")//'
    """, shell=True).rstrip().decode("utf-8", 'ignore')
    all_keys = REQUIRED_KEYS + OPTIONAL_KEYS
    for line in output.split("\n"):