(s)
return "'" + s.replace("'", "'\\''") + "'"
Quotes an argument so that it will be interpreted literally by a POSIX
     shell. Taken from
     http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python
Quotes an argument so that it will be interpreted literally by a POSIX
     shell. Taken from
     http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python
Quotes an argument so that it will be interpreted literally by a POSIX shell . Taken from http : // stackoverflow . com / questions / 35817 / whats - the - best - way - to - escape - ossystem - calls - in - python
def EscapeShellArgument(s):
  """Quotes an argument so that it will be interpreted literally by a POSIX
     shell. Taken from
     http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python
     """
  return "'" + s.replace("'", "'\\''") + "'"
def EscapeShellArgument ( s ) : return "'" + s . replace ( "'" , "'\\''" ) + "'"