You are viewing an older version (9.3.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.3.0 / IPython / utils / path / expand_path

function

IPython.utils.path:expand_path

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

Signature

def   expand_path ( s )

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