mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
detect dropbox location
This commit is contained in:
parent
462cfa5b83
commit
7a7c1d3b0d
1 changed files with 11 additions and 7 deletions
|
@ -2978,6 +2978,10 @@ to work with this version of Anki."""))
|
||||||
shutil.rmtree(from_, ignore_errors=True)
|
shutil.rmtree(from_, ignore_errors=True)
|
||||||
|
|
||||||
def dropboxFolder(self):
|
def dropboxFolder(self):
|
||||||
|
try:
|
||||||
|
import ankiqt.ui.dropbox as db
|
||||||
|
p = db.getPath()
|
||||||
|
except:
|
||||||
if sys.platform.startswith("win32"):
|
if sys.platform.startswith("win32"):
|
||||||
s = QSettings(QSettings.UserScope, "Microsoft", "Windows")
|
s = QSettings(QSettings.UserScope, "Microsoft", "Windows")
|
||||||
s.beginGroup("CurrentVersion/Explorer/Shell Folders")
|
s.beginGroup("CurrentVersion/Explorer/Shell Folders")
|
||||||
|
|
Loading…
Reference in a new issue