bug fix: creating project ... download themes

v2.2
Steve Nyemba 1 week ago
parent 19d51e7769
commit ec3b8680df

@ -147,16 +147,18 @@ def _index (_path,root):
f.write(_html) f.write(_html)
f.close() f.close()
def _itheme(_path,_root,_name='default'): def _itheme(_path,_root,_name='default'):
_data = themes.Get(_name)[_name] _path = os.sep.join([_path,_root])
_themefolder = os.sep.join([_path,_root,'_assets','themes',_name]) themes.Get(_name, _path)
if not os.path.exists(_themefolder) : # _data = themes.Get(_name, _path)[_name]
os.makedirs(_themefolder) # _themefolder = os.sep.join([_path,_root,'_assets','themes',_name])
# if not os.path.exists(_themefolder) :
# os.makedirs(_themefolder)
for _name in _data : # for _name in _data :
f = open(os.sep.join([_themefolder,_name+'.css']),'w') # f = open(os.sep.join([_themefolder,_name+'.css']),'w')
f.write(_data[_name]) # f.write(_data[_name])
f.close() # f.close()
pass # pass
def make (**_args) : def make (**_args) :
""" """
This function create a project folder and within the folder are all the elements needed This function create a project folder and within the folder are all the elements needed

Loading…
Cancel
Save