Skip to content

Instantly share code, notes, and snippets.

@sidewinder42
sidewinder42 / DropboxSync.py
Last active March 8, 2016 03:30 — forked from wrenoud/DropboxSync.py
A quick fix for DropboxSync to stop it crashing in Pythonista 1.4 when trying to write to Inbox by forcing it not to write to Inbox. There are probably more elegant solutions...
import os
import sys
import pickle
import console
# 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/4034526
STATE_FILE = '.dropbox_state'