Skip to content

Instantly share code, notes, and snippets.

@inceax
Created April 16, 2015 06:36
Show Gist options
  • Save inceax/51cca621a530211c5632 to your computer and use it in GitHub Desktop.
Save inceax/51cca621a530211c5632 to your computer and use it in GitHub Desktop.
flickr_upload current directory
#!/usr/bin/python
import os
import subprocess
# Flickr Uploader using Directory Name as Title
# Based on...
# http://ubuntuforums.org/showthread.php?t=1416977
# http://search.cpan.org/~cpb/Flickr-Upload/flickr_upload
name = os.path.basename(os.getcwd())
cmd = 'flickr_upload --title "' + name + '" ' + '*'
print cmd
os.system(cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment