Skip to content

Commit

Permalink
Add is_shell_path arg to escape_string
Browse files Browse the repository at this point in the history
Signed-off-by: amorphousWaste <20346603+amorphousWaste@users.noreply.github.com>
  • Loading branch information
amorphousWaste authored and Jawabiscuit committed Sep 15, 2023
1 parent 7aaaecb commit 640e44c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rez/rex.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def shebang(self):

# --- other

def escape_string(self, value, is_path=False):
def escape_string(self, value, is_path=False, is_shell_path=False):
"""Escape a string.
Escape the given string so that special characters (such as quotes and
Expand All @@ -561,6 +561,7 @@ def escape_string(self, value, is_path=False):
Args:
value (str or `EscapedString`): String to escape.
is_path (bool): True if the value is path-like.
is_shell_path (bool): True if the value is a shell-path.
Returns:
str: The escaped string.
Expand Down

0 comments on commit 640e44c

Please sign in to comment.