mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-28 13:10:02 +08:00
10 lines
203 B
Python
10 lines
203 B
Python
"""农场数据目录选择。"""
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
def data_directory(base, configured=None):
|
|
if configured:
|
|
return Path(configured).expanduser()
|
|
return Path(base) / 'farm_db'
|