MCPcopy Create free account
hub / github.com/ipython/ipython / create_profile_dir_by_name

Method create_profile_dir_by_name

IPython/core/profiledir.py:165–179  ·  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

163
164 @classmethod
165 def create_profile_dir_by_name(cls, path, name=u'default', config=None):
166 """Create a profile dir by profile name and path.
167
168 Parameters
169 ----------
170 path : unicode
171 The path (directory) to put the profile directory in.
172 name : unicode
173 The name of the profile. The name of the profile directory will
174 be "profile_<profile>".
175 """
176 if not os.path.isdir(path):
177 raise ProfileDirError('Directory not found: %s' % path)
178 profile_dir = os.path.join(path, u'profile_' + name)
179 return cls(location=profile_dir, config=config)
180
181 @classmethod
182 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