[mod] remove indentation level
This commit is contained in:
parent
820dd267d4
commit
05078aaa57
@ -122,7 +122,9 @@ class Image(object):
|
|||||||
return self.options["name"]
|
return self.options["name"]
|
||||||
|
|
||||||
def gm(self, source, target, options):
|
def gm(self, source, target, options):
|
||||||
if CACHE.needs_to_be_generated(source, target, options):
|
if not CACHE.needs_to_be_generated(source, target, options):
|
||||||
|
okgreen("Skipped", source + " is already generated")
|
||||||
|
|
||||||
gm_switches = {
|
gm_switches = {
|
||||||
"source": source,
|
"source": source,
|
||||||
"target": target,
|
"target": target,
|
||||||
@ -136,8 +138,6 @@ class Image(object):
|
|||||||
print(command)
|
print(command)
|
||||||
os.system(command)
|
os.system(command)
|
||||||
CACHE.cache_picture(source, target, options)
|
CACHE.cache_picture(source, target, options)
|
||||||
else:
|
|
||||||
okgreen("Skipped", source + " is already generated")
|
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
source, target = os.path.join(self.base_dir, self.name), os.path.join(self.target_dir, self.name)
|
source, target = os.path.join(self.base_dir, self.name), os.path.join(self.target_dir, self.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user