summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2016-03-02 12:58:10 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2016-03-02 12:58:10 -0800
commitf322dc9ebbee582c8283083b887374b1c67c89d5 (patch)
tree071405eac9f31ed1e56708b288859e2aa0d9ae9f
parent0621b7f7ab757d2b4df7fd2496f2bbf39b7cf313 (diff)
ok that works
-rw-r--r--photoblaster/_file.py5
-rw-r--r--run_module_examples.py2
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()