diff options
| -rw-r--r-- | photoblaster/_file.py | 5 | ||||
| -rw-r--r-- | run_module_examples.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/photoblaster/_file.py b/photoblaster/_file.py index 654f305..4e4a382 100644 --- a/photoblaster/_file.py +++ b/photoblaster/_file.py @@ -69,11 +69,10 @@ class File(object): def set_filepath(self, filepath, module=None): """sets the filepath""" - if os.path.exits(self._filepath): - cmd = ['mv', self._filepath, filepath] + if os.path.exists(self.get_filepath()): + cmd = ['mv', self.get_filepath(), filepath] if module: module.commands.append(" ".join(cmd)) - self._filepath = filepath self.set_filename(filename=os.path.basename(filepath)) self._directory = os.path.dirname(filepath) diff --git a/run_module_examples.py b/run_module_examples.py index 3c0e29a..882de78 100644 --- a/run_module_examples.py +++ b/run_module_examples.py @@ -3,7 +3,7 @@ from photoblaster.modules import Pb for cls in Pb.__subclasses__(): print cls.__name__ - if cls.__name__ == "PbLandscape": + if cls.__name__ == "PbBreaker": instance = cls.example_run() print instance.get_output_file().as_dict() instance.get_output_file().s3move() |
