I have a string representing a path. Because this application is used on Windows, OSX and Linux, we\'ve defined environment variables to properly map volumes from the diffe
Use os.path.expandvars to expand the environment variables in the string, for example:
>>> os.path.expandvars('$C/test/testing') '/stackoverflow/test/testing'