MCPcopy Index your code
hub / github.com/ipython/ipython / create_profile_dir_by_name

Method create_profile_dir_by_name

IPython/core/profiledir.py:186–200  ·  view source on GitHub ↗

Create a profile dir by profile name and path. Parameters ---------- path : unicode The path (directory) to put the profile directory in. name : unicode The name of the profile. The name of the profile directory will be "profile_<

(cls, path, name=u'default', config=None)

Source from the content-addressed store, hash-verified

184
185 @classmethod
186 def create_profile_dir_by_name(cls, path, name=u'default', config=None):
187 """Create a profile dir by profile name and path.
188
189 Parameters
190 ----------
191 path : unicode
192 The path (directory) to put the profile directory in.
193 name : unicode
194 The name of the profile. The name of the profile directory will
195 be "profile_<profile>".
196 """
197 if not os.path.isdir(path):
198 raise ProfileDirError('Directory not found: %s' % path)
199 profile_dir = os.path.join(path, u'profile_' + name)
200 return cls(location=profile_dir, config=config)
201
202 @classmethod
203 def find_profile_dir_by_name(cls, ipython_dir, name=u'default', config=None):

Callers 3

init_profile_dirMethod · 0.80
init_profile_dirMethod · 0.80
setUpMethod · 0.80

Calls 1

ProfileDirErrorClass · 0.85

Tested by 1

setUpMethod · 0.64