Skip to content

Commit c665ed3

Browse files
committed
代码调整
1 parent 60aea80 commit c665ed3

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

hhlc/__init__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ def main(xls, export, tmpl, command, ptype):
5959
call(xls, export, tmpl, command, ptype)
6060

6161
def callEtc(heroPath, sszPath, exportPath):
62-
import etc
62+
import hhlc.etc as etc
6363
etc.call(heroPath, sszPath, exportPath)
6464

6565
if __name__ == '__main__':
66-
call(
67-
"D:\\works\\hhl\\projects\\config\\xls",
68-
"D:\\works\\hhl\\projects\\client\\src\\conf",
69-
"D:\\works\\hhl\\projects\\config\\templates",
70-
["skill"],
71-
"lua")
72-
73-
# callEtc(
74-
# "D:\\works\\hhl\\projects\\resource\\art",
75-
# "D:\\works\\hhl\\projects\\resource\\art\\ssz",
76-
# "D:\\works\\hhl\\projects\\resource\\skill"
77-
# )
66+
# call(
67+
# "D:\\works\\hhl\\projects\\config\\xls",
68+
# "D:\\works\\hhl\\projects\\client\\src\\conf",
69+
# "D:\\works\\hhl\\projects\\config\\templates",
70+
# ["skill"],
71+
# "lua")
72+
73+
callEtc(
74+
"D:\\works\\hhl\\projects\\resource\\art",
75+
"D:\\works\\hhl\\projects\\resource\\art\\ssz",
76+
"D:\\works\\hhl\\projects\\resource\\skill"
77+
)
7878

hhlc/etc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def parseHero(self, files):
3434
tmpStr = ''
3535

3636
for path in files:
37-
slog.info("parse: %s", os.path.basename(path))
3837
heroId = os.path.basename(path).split('.')[0]
3938
obj = json.loads(read_file(path))
4039
tmpStr += self._parseHero(obj, heroId)
@@ -164,6 +163,7 @@ def call(heroPath, sszPath, exportPath):
164163

165164
# parse heros
166165
files = filter(herosFiles, get_files(heroPath, ["json"]))
166+
slog.info("parse: etc.json")
167167
parser.parseHero(files)
168168

169169
# parse ssz

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setup(
3535
name="hhlc",
36-
version="0.1.3",
36+
version="0.1.6",
3737
url='http://zengrong.net/',
3838
author='zrong',
3939
author_email='zrongzrong@gmail.com',

0 commit comments

Comments
 (0)