Commit 542f5bba by sikang

test

parent facb37d0
......@@ -74,7 +74,6 @@ class LayoutGarble:
content += layout
else:
content += self.__create_views()
root_layout = root_layout.replace("${childs}",content)
with open(path,"w+",encoding='utf-8') as fout:
......@@ -91,9 +90,8 @@ class LayoutGarble:
print("layout inserting ...")
for main_dir in config['lib_main']:
for root, dirs, files in os.walk("%s/%s" % (config["root"], main_dir)):
if root.endswith("res/layout"):
path = os.path.join(root, "%s.xml" % self.__gen_rand_str())
self.__create_layout(path)
for root, dirs, files in os.walk("%s/%s" % (config["root"], "%s/res/layout"%main_dir)):
path = os.path.join(root, "%s.xml" % self.__gen_rand_str())
self.__create_layout(path)
print("done")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment