diff options
Diffstat (limited to 'gerbonara/cam.py')
-rw-r--r-- | gerbonara/cam.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gerbonara/cam.py b/gerbonara/cam.py index 9819087..14d4c61 100644 --- a/gerbonara/cam.py +++ b/gerbonara/cam.py @@ -444,5 +444,8 @@ class LazyCamFile: def save(self, filename, *args, **kwargs): """ Copy this Gerber file to the new path. """ - shutil.copy(self.original_path, filename) + if 'instance' in self.__dict__: # instance has been loaded, and might have been modified + self.instance.save(filename, *args, **kwargs) + else: + shutil.copy(self.original_path, filename) |