Merge pull request #24 from julienmalik/fix_settings
[fix] individual images can override global settings, not the other way around
This commit is contained in:
commit
d9aa086f2b
@ -30,8 +30,8 @@ class Image(object):
|
|||||||
# assuming string
|
# assuming string
|
||||||
if not isinstance(options, dict):
|
if not isinstance(options, dict):
|
||||||
options = {"name": options}
|
options = {"name": options}
|
||||||
self.options = options.copy() # used for caching, if it's modified -> regenerate
|
self.options = SETTINGS["gm"].copy() # used for caching, if it's modified -> regenerate
|
||||||
self.options.update(SETTINGS["gm"])
|
self.options.update(options)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user