[Scons-users] How can I manipulate $SOURCE and $TARGET

Russell, J.J. russell at slac.stanford.edu
Wed Feb 12 19:41:11 EST 2014


Using one of LINKCOMSTR or its variants to control the output of a build, I would like to strip some of the leading directories from the $SOURCE and $TARGET strings. For example, if $TARGET is

/a/really/long/directory/path/to/package/file.exe

I would like to print just

package/file.exe

and ignore the boilerplate root directories as just adding noise to the output.

I am a novice at this, so hopefully I just missed the obvious.

JJRussell



Dr. James J. Russell
Stanford Linear Accelerator Center
650-926-2583
russell at slac.stanford.edu



More information about the Scons-users mailing list