SUSYUSTC / MathTranslate

translate scientific papers in latex, especially arxiv papers
https://github.com/SUSYUSTC/MathTranslate
Apache License 2.0
1.04k stars 69 forks source link

Update __init__.py #59

Closed h4rk8s closed 1 year ago

h4rk8s commented 1 year ago

It appears that the appdata library might not follow the standard application data path conventions of macOS. By default on the MacOS, the directory created is in the ~ root directory (~/mathtranslate). For a bit of OCD, it is better to create it under ~/.cache/mathtranslate. :)

SUSYUSTC commented 1 year ago

Thanks for this finding. Indeed I think ~/mathtranslate probably does not make sense. However ~/.cache.mathtranslate seems to be the cache data, while in fact app_dir also contains some other data, e.g. the tencent translation API ID and secrets. How about ~/.mathtranslate? This is also the default choice on Linux.