mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 04:37:57 +00:00
Fix default base path on windows (#6120)
* Use directories instead of app_dirs * Use local data dir
This commit is contained in:
@@ -24,7 +24,6 @@ use crate::{
|
||||
init_logger, DatabaseParams, ImportParams, KeystoreParams, NetworkParams, NodeKeyParams,
|
||||
OffchainWorkerParams, PruningParams, SharedParams, SubstrateCli,
|
||||
};
|
||||
use app_dirs::{AppDataType, AppInfo};
|
||||
use names::{Generator, Name};
|
||||
use sc_client_api::execution_extensions::ExecutionStrategies;
|
||||
use sc_service::config::{
|
||||
@@ -406,14 +405,10 @@ pub trait CliConfiguration: Sized {
|
||||
let config_dir = self
|
||||
.base_path()?
|
||||
.unwrap_or_else(|| {
|
||||
app_dirs::get_app_root(
|
||||
AppDataType::UserData,
|
||||
&AppInfo {
|
||||
name: C::executable_name(),
|
||||
author: C::author(),
|
||||
},
|
||||
)
|
||||
.expect("app directories exist on all supported platforms; qed")
|
||||
directories::ProjectDirs::from("", "", C::executable_name())
|
||||
.expect("app directories exist on all supported platforms; qed")
|
||||
.data_local_dir()
|
||||
.into()
|
||||
})
|
||||
.join("chains")
|
||||
.join(chain_spec.id());
|
||||
|
||||
Reference in New Issue
Block a user