You can run shell commands using the subprocess module
(you can also use os.system but, as python recommend using subprocess instead, that's what I'm going to show you!).
One disclaimer: I don't know the dropbox uploader script so I will assume that the code you've got in your post is correct and complete.
Code: Select all
# Code to take your photo here
# Run uploader
subprocess.call(["./dropbox_uploader.sh", "upload", "cam", "/Apps/PythonUploader"])