diff --git a/pyxtal/interface/gulp.py b/pyxtal/interface/gulp.py index abb8b982..5a9c0935 100644 --- a/pyxtal/interface/gulp.py +++ b/pyxtal/interface/gulp.py @@ -87,8 +87,12 @@ def execute(self): os.system(cmd) def clean(self): - os.remove(self.input) - os.remove(self.output) + if self.error: + os.system('mv ' + self.input + ' error_' + self.input) + os.system('mv ' + self.output + ' error_' + self.output) + else: + os.remove(self.input) + os.remove(self.output) if self.dump is not None: os.remove(self.dump)