bundles / IPython 9.12.0 / IPython / core / profiledir / ProfileDir / find_profile_dir_by_name
classmethod
IPython.core.profiledir:ProfileDir.find_profile_dir_by_name
source: /IPython/core/profiledir.py :202
Summary
Find an existing profile dir by profile name, return its ProfileDir.
Extended Summary
This searches through a sequence of paths for a profile dir. If it is not found, a ProfileDirError exception will be raised.
The search path algorithm is: 1. os.getcwd() # removed for security reason. 2. ipython_dir
Parameters
ipython_dir: unicode or strThe IPython directory to use.
name: unicode or strThe name of the profile. The name of the profile directory will be "profile_<profile>".
Aliases
-
IPython.core.application.ProfileDir.find_profile_dir_by_name