# -*- coding: utf-8 -*-
import os
import sys
import os.path
import shutil
import Image
import json
#fileName = raw_input('输入要解析的文件名:')
#if fileName.find('.png') != -1:
# fileName = fileName[:-4]
fileName="spine1"
pngName = fileName + '.png'
atlasName = fileName + '.atlas'
print pngName,atlasName
big_image = Image.open(pngName)
atlas = file(atlasName, "r");
curPath = os.getcwd()# 当前路径
aim_path = os.path.join(curPath, fileName)
print aim_path
if os.path.isdir(aim_path):
shutil.rmtree(aim_path,True)#如果有该目录,删除
os.makedirs(aim_path)
#
_line = atlas.readline();
_line = atlas.readline();
_line = atlas.readline();
_line