Skip to content
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

Protect study path with space when using cucumber #2401

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

JasonMarechal25
Copy link
Contributor

@JasonMarechal25 JasonMarechal25 commented Sep 18, 2024

Study path with spaces can lead to error if the CLI interpreter assume the path being multiple space separated parameters.

  • Surround study path parameter with double quotes
  • Update documentation: use python -m pip instead of pip

@@ -35,7 +55,7 @@ def activate_simu_outputs(context):


def build_antares_solver_command(context):
command = [SOLVER_PATH, "-i", str(context.study_path)]
command = [SOLVER_PATH, "-i", f'"{context.study_path}"']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert all other changes and keep only this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the copyright notice but other changes are legitimate.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants