Change some dir paths

This commit is contained in:
rydesun 2022-10-25 20:43:36 +08:00
parent efb005462f
commit e7501dedb0
4 changed files with 13 additions and 20 deletions

View file

@ -2,8 +2,8 @@ import atexit
import os
import readline
xdg_data_home = os.getenv('XDG_DATA_HOME', os.path.expanduser('~/.data'))
xdg_data_home = os.getenv(
'XDG_DATA_HOME', os.path.expanduser('~/.local/share'))
data_dir = os.path.join(xdg_data_home, 'python')
readline_history_file = os.path.join(data_dir, 'history')