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) → strSummary
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