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

Function list_profiles_in

IPython/core/profileapp.py:97–106  ·  view source on GitHub ↗

list profiles in a given root directory

(path)

Source from the content-addressed store, hash-verified

95
96
97def list_profiles_in(path):
98 """list profiles in a given root directory"""
99 profiles = []
100
101 # for python 3.6+ rewrite to: with os.scandir(path) as dirlist:
102 files = os.scandir(path)
103 for f in files:
104 if f.is_dir() and f.name.startswith('profile_'):
105 profiles.append(f.name.split('_', 1)[-1])
106 return profiles
107
108
109def list_bundled_profiles():

Callers 2

test_list_profiles_inFunction · 0.90
list_profile_dirsMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_list_profiles_inFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…