Add directory to PATH (with_path)

If you want to run a command with an additional folder on the path you can specify it with with_path.

Note that if you use CommandPath object, the directory you use it on is already added.


echo hello $1 > output
ls $1

from commandlib import Command

runls = Command("./runls")

Add bin_directory to PATH for runls:


File 'output' will contain:

hello harry

Executable specification

Documentation automatically generated from with-path.story storytests.