if ppath in self.getProfilesList():
self.stopDropbox()
try:
- print self.getDropboxDirectory()
- print ppath
if pl in ('Linux','Darwin'):
if os.path.exists(self.getDropboxDirectory()):
os.unlink(self.getDropboxDirectory())
def stopDropbox(self):
""" Stop dropbox Daemon """
pl = platform.system()
+ if pl == 'Linux':
+ os.system("dropbox stop")
if pl in ('Linux','Darwin'):
pidfile = os.path.expanduser("~/.dropbox/dropbox.pid")
try: