X-Git-Url: https://v.licheni.net/stack/code/dboxswitch.git/blobdiff_plain/d12658f79e38f8a8b3c42cbaa97b76cfd63f25e7..0a23226fa92b41cf80501a5e0eb0de1a7edbaf78:/profhandler.py diff --git a/profhandler.py b/profhandler.py index d0fbb17..c1a30e8 100755 --- a/profhandler.py +++ b/profhandler.py @@ -133,8 +133,6 @@ class ProfHandler(): 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()) @@ -160,6 +158,8 @@ class ProfHandler(): 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: