def getDropboxDirectory(self):
pl = platform.system()
- if pl == 'Linux':
+ if pl in ('Linux', 'Darwin'):
return os.path.join(os.path.expanduser('~'),".dropbox")
elif pl == 'Windows':
- raise NotImplementedError, "Not implemented yet."
- elif pl == 'Darwin':
+ assert os.environ.has_key('APPDATA'), Exception('APPDATA env variable not found')
+ return os.path.join(os.environ['APPDATA'],'Dropbox')
+ else:
raise NotImplementedError, "Not implemented yet."