-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[infra] fix: config_file parametrization #1344
Conversation
===> 8 warning(s) found:
|
1 similar comment
===> 8 warning(s) found:
|
@@ -199,7 +199,7 @@ def _init_config(self, force): | |||
config_file = self.config_path / "config.toml" | |||
|
|||
# Create credentials folder | |||
credentials_folder = Path.home() / self.config_path / "credentials" | |||
credentials_folder = self.config_path / "credentials" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isso vai funcionar só se o usuário passar o caminho absoluto no project_config_path
. Não tem nada validando o path que o usuário passa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acho que sempre tem que ser o path absoluto, pq n tem como saber se ele passou a partir da home ou n. Da pra levantar um raise caso n seja path absoluto
config_path