Skip to content

Commit

Permalink
Spelling.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfloch committed Aug 29, 2019
1 parent b5e1999 commit e626781
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/rez/tests/test_shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _execute_code(func, expected_output):
out, _ = p.communicate()
self.assertEqual(p.returncode, 0)

# Powershell and Unix uses \n
# PowerShell and Unix uses \n
sh = create_shell()

output = out.strip().split(sh.line_terminator())
Expand Down
2 changes: 1 addition & 1 deletion src/rez/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def create_executable_script(filepath, body, program=None, py_script_mode=None):
# default python, or in case of later python versions 'py' that should
# try to use sensible python interpreters depending on the shebang line.
# Compare PEP-397.
# In order to execution to work from windows we need to create a .py
# In order for execution to work in windows we need to create a .py
# file and set the PATHEXT to include .py (as done by the shell plugins)
# So depending on the py_script_mode we might need to create more then
# one script
Expand Down
4 changes: 2 additions & 2 deletions src/rezplugins/shell/powershell_common/powershell_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

class PowerShellBase(Shell):
"""
Abstract base class for Powershell-like shells.
Abstract base class for PowerShell-like shells.
"""
expand_env_vars = True

syspaths = None
_executable = None

# Make sure that the $Env:VAR formats come before the $VAR formats since
# Powershell Environment variables are ambiguous with Unix paths.
# PowerShell Environment variables are ambiguous with Unix paths.
ENV_VAR_REGEX = re.compile(
"|".join([
"\\$[Ee][Nn][Vv]:([a-zA-Z_]+[a-zA-Z0-9_]*?)", # $Env:ENVVAR
Expand Down
2 changes: 1 addition & 1 deletion src/rezplugins/shell/pwsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_syspaths(cls):
else:
# TODO: Newer versions of pwsh will parse .profile via sh [1], so
# we could use a similar technique as SH itself. For now, to
# support older pwsh version we depend on SH on unix like platforms
# support older pwsh version we depend on SH on Unix-like platforms
# directly.
# [1] https://github.com/PowerShell/PowerShell/pull/10050
from rezplugins.shell.sh import SH
Expand Down

0 comments on commit e626781

Please sign in to comment.