Commit 542f5bba by sikang

test

parent facb37d0
...@@ -74,7 +74,6 @@ class LayoutGarble: ...@@ -74,7 +74,6 @@ class LayoutGarble:
content += layout content += layout
else: else:
content += self.__create_views() content += self.__create_views()
root_layout = root_layout.replace("${childs}",content) root_layout = root_layout.replace("${childs}",content)
with open(path,"w+",encoding='utf-8') as fout: with open(path,"w+",encoding='utf-8') as fout:
...@@ -91,9 +90,8 @@ class LayoutGarble: ...@@ -91,9 +90,8 @@ class LayoutGarble:
print("layout inserting ...") print("layout inserting ...")
for main_dir in config['lib_main']: for main_dir in config['lib_main']:
for root, dirs, files in os.walk("%s/%s" % (config["root"], main_dir)): for root, dirs, files in os.walk("%s/%s" % (config["root"], "%s/res/layout"%main_dir)):
if root.endswith("res/layout"): path = os.path.join(root, "%s.xml" % self.__gen_rand_str())
path = os.path.join(root, "%s.xml" % self.__gen_rand_str()) self.__create_layout(path)
self.__create_layout(path)
print("done") 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