Skip to content

Commit

Permalink
fix: white space in user path (#140)
Browse files Browse the repository at this point in the history
Co-authored-by: Roberto Pastor Muela <[email protected]>
  • Loading branch information
kmahajan-cadfem and RobPasMue authored Jul 31, 2023
1 parent 3c9bc56 commit af18362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ansys/tools/installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ def run_ps(command, full_path_to_ps=False):
def install_python(filename, wait=True):
"""Install "vanilla" python for a single user."""
wait_str = " -Wait" if wait else ""
command = f'(Start-Process {filename} -ArgumentList "/passive InstallAllUsers=0" {wait_str})'
command = f"(Start-Process '{filename}' -ArgumentList '/passive InstallAllUsers=0' {wait_str})"
return run_ps(command)
2 changes: 1 addition & 1 deletion src/ansys/tools/installer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def __init__(self, show=True):
@protected
def _exe_update(self, filename):
"""After downloading the update for this application, run the file and shutdown this application."""
run_ps(f"(Start-Process {filename})")
run_ps(f"(Start-Process '{filename}')")

# exiting
LOG.debug("Closing...")
Expand Down

0 comments on commit af18362

Please sign in to comment.