bundles / IPython 9.13.0 / IPython / utils / path / expand_path
function
IPython.utils.path:expand_path
source: /IPython/utils/path.py :237
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