File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
nonebot_plugin_localstore Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 3434
3535APP_NAME = "nonebot2"
3636BASE_CACHE_DIR = (
37- user_cache_dir (APP_NAME ).resolve ()
37+ (Path .cwd () / "cache" )
38+ if plugin_config .use_cwd
39+ else user_cache_dir (APP_NAME ).resolve ()
3840 if plugin_config .localstore_cache_dir is None
3941 else plugin_config .localstore_cache_dir .resolve ()
4042)
4143BASE_CONFIG_DIR = (
42- user_config_dir (APP_NAME ).resolve ()
44+ (Path .cwd () / "config" )
45+ if plugin_config .use_cwd
46+ else user_config_dir (APP_NAME ).resolve ()
4347 if plugin_config .localstore_config_dir is None
4448 else plugin_config .localstore_config_dir .resolve ()
4549)
4650BASE_DATA_DIR = (
47- user_data_dir (APP_NAME ).resolve ()
51+ (Path .cwd () / "data" )
52+ if plugin_config .use_cwd
53+ else user_data_dir (APP_NAME ).resolve ()
4854 if plugin_config .localstore_data_dir is None
4955 else plugin_config .localstore_data_dir .resolve ()
5056)
You can’t perform that action at this time.
0 commit comments