-
Notifications
You must be signed in to change notification settings - Fork 8
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
scripts: cli: Fix blank spaces error in path name #60
base: master
Are you sure you want to change the base?
Conversation
scripts/cli.py
Outdated
@@ -189,7 +189,7 @@ def check_env(self): | |||
logging.info('Using KNoT base path: ' + self.knot_path) | |||
|
|||
# Get current working directory | |||
self.cwd = os.getcwd() | |||
self.cwd = os.getcwd().replace(" ","\ ") |
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.
About commit message:
Replacing
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.
What are you fixing? What is CWD?
Explain what was the problem. The commit message should explain at least what is the problem and what solves it.
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.
spaces with "\ " character
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.
Please use the function https://docs.python.org/2/library/pipes.html#pipes.quote for python 2
or https://docs.python.org/3.4/library/shlex.html#shlex.quote for python 3
When building inside an application folder with blank space in the folder's name, a path error occurs. Using function 'quote' from shlex library fix this issue. Signed-off-by: Humberto Wanderley <[email protected]>
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.
The build fails when building the core application. It tries to create the build folder using a path in the following format '<path-to-app-folder>'/build
. Please, fix it.
replacing blank spaces with "\ " fix cwd path error.
Signed-off-by: Humberto Wanderley [email protected]