def get_dropbox_folder_location():
 host_db_path = os.path.join(os.environ['HOME'], '.dropbox/host.db')
 try:
  with open(host_db_path, 'r') as f_hostdb:
   data = f_hostdb.read().split()
 except IOError:
  error('Unable to find your Dropbox install =(')
 dropbox_home = base64.b64decode(data[1])
 return dropbox_home

def get_dropbox_folder_location ( ) : host_db_path = os . path . join ( os . environ [ 'HOME' ] , '.dropbox/host.db' ) try : with open ( host_db_path , 'r' ) as f_hostdb : data = f_hostdb . read ( ) . split ( ) except IOError : error ( 'Unable to find your Dropbox install =(' ) dropbox_home = base64 . b64decode ( data [ 1 ] ) return dropbox_home
try to locate the dropbox folder .