mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
fix cmdline unicode profile
This commit is contained in:
parent
a85addc5d5
commit
b5c562d552
1 changed files with 2 additions and 0 deletions
|
|
@ -130,6 +130,8 @@ def run():
|
|||
parser.add_option("-p", "--profile", help="Profile name to load")
|
||||
parser.add_option("-l", "--lang", help="Interface language (en, de, etc)")
|
||||
(opts, args) = parser.parse_args(sys.argv[1:])
|
||||
opts.base = unicode(opts.base or "", sys.getfilesystemencoding())
|
||||
opts.profile = unicode(opts.profile or "", sys.getfilesystemencoding())
|
||||
|
||||
# profile manager
|
||||
from aqt.profiles import ProfileManager
|
||||
|
|
|
|||
Loading…
Reference in a new issue