コード例 #1
0
ファイル: profiles.py プロジェクト: zaeph/anki
 def _oldFolderLocation(self):
     if isMac:
         return os.path.expanduser("~/Documents/Anki")
     elif isWin:
         from aqt.winpaths import get_personal
         return os.path.join(get_personal(), "Anki")
     else:
         p = os.path.expanduser("~/Anki")
         if os.path.isdir(p):
             return p
         return os.path.expanduser("~/Documents/Anki")
コード例 #2
0
ファイル: profiles.py プロジェクト: bbugyi200/anki
 def _oldFolderLocation(self):
     if isMac:
         return os.path.expanduser("~/Documents/Anki")
     elif isWin:
         from aqt.winpaths import get_personal
         return os.path.join(get_personal(), "Anki")
     else:
         p = os.path.expanduser("~/Anki")
         if os.path.isdir(p):
             return p
         return os.path.expanduser("~/Documents/Anki")