Skip to content

nathanharper/subprocess.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

subprocess.py

UncommonGoods fork of the python "subprocess" library.

We were experiencing some problems with the way the library was escaping arguments for Windows CLI, so we modified the lib2cmdline method.

To enclose arguments with single quotes rather than double quotes, you can pass the singlequote parameter. For example:

output = subprocess.check_output(\
    ['powershell', r'.\my_script.ps1', 'An argument - that should & be single-quoted'],\
    singlequote=True)

Copied from BitBucket: https://bitbucket.org/pypy/pypy/src/9d88b4875d6e/lib-python/2.7/subprocess.py

About

Copy of subprocess.py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages