list profiles that are bundled with IPython.
()
| 107 | |
| 108 | |
| 109 | def list_bundled_profiles(): |
| 110 | """list profiles that are bundled with IPython.""" |
| 111 | path = os.path.join(get_ipython_package_dir(), u'core', u'profile') |
| 112 | profiles = [] |
| 113 | |
| 114 | # for python 3.6+ rewrite to: with os.scandir(path) as dirlist: |
| 115 | files = os.scandir(path) |
| 116 | for profile in files: |
| 117 | if profile.is_dir() and profile.name != "__pycache__": |
| 118 | profiles.append(profile.name) |
| 119 | return profiles |
| 120 | |
| 121 | |
| 122 | class ProfileLocate(BaseIPythonApplication): |
searching dependent graphs…