Detect .custom files by default
This commit is contained in:
@@ -9,6 +9,8 @@ Render Templates
|
||||
class WOTemplate():
|
||||
def tmpl_render(self, fileconf, template, data, overwrite=True):
|
||||
data = dict(data)
|
||||
if (not os.path.isfile('{0}.custom'
|
||||
.format(fileconf))):
|
||||
if (not overwrite):
|
||||
if not os.path.isfile('{0}'.format(fileconf)):
|
||||
Log.debug(self, 'Writting the configuration to '
|
||||
@@ -19,8 +21,6 @@ class WOTemplate():
|
||||
out=wo_template)
|
||||
wo_template.close()
|
||||
else:
|
||||
if (not os.path.isfile('{0}.custom'
|
||||
.format(fileconf))):
|
||||
Log.debug(self, 'Writting the configuration to '
|
||||
'file {0}'.format(fileconf))
|
||||
wo_template = open('{0}'.format(fileconf),
|
||||
|
||||
Reference in New Issue
Block a user