This is a development version (latest) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython latest / IPython / utils / path / expand_path

function

IPython.utils.path:expand_path

source: /IPython/utils/path.py:239

Signature

def expand_path(s: str) → str

Summary

Expand $VARS and ~names in a string, like a shell

Extended Summary

Examples

In [2]: os.environ['FOO']='test'

In [3]: expand_path('variable FOO is $FOO') Out[3]: 'variable FOO is test'

Aliases

  • IPython.core.profiledir.expand_path