- if os.path.exists(self.getDropboxDirectory()):
- os.unlink(self.getDropboxDirectory())
- os.symlink(ppath, self.getDropboxDirectory())
+ dbdir = self.getDropboxDirectory()
+ if os.path.exists(dbdir):
+ os.unlink(dbdir)
+ os.symlink(ppath, dbdir)
if pl in ('Linux', 'Darwin'):
basepath = os.path.join(os.path.expanduser("~"), ".dropbox")
for path in [os.path.join(basepath, "instance1"), basepath]:
if pl in ('Linux', 'Darwin'):
basepath = os.path.join(os.path.expanduser("~"), ".dropbox")
for path in [os.path.join(basepath, "instance1"), basepath]: