This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://gist.github.com/4034526 | |
# Modified to prompt for app key/secret and store in keychain | |
# YOU NEED TO FILL IN YOUR APP KEY AND SECRET WHEN FIRST RUN! | |
# Go to dropbox.com/developers/apps to create an app. | |
# To reset app key & secret, change RESET_APP_SETTINGS to True and | |
# run this script. Remember to set it back out to False afterwards. | |
RESET_APP_SETTINGS = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import pickle | |
import console | |
import editor | |
from collections import namedtuple | |
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder | |
sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')] | |
import dropboxlogin # this code can be found here: https://gist.github.com/edgauthier/6445941 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Provides a simple shell with basic | |
# commands for dealing with files and | |
# directories. | |
# | |
# This script will try and prevent | |
# unsafe file operations outside of | |
# Documents directory. | |
# | |
# Add a setting named allow_unsafe and | |
# in the config dict and set to True |