##// END OF EJS Templates
profile list prints just profile names
MinRK -
Show More
@@ -137,31 +137,38 b' class ProfileList(Application):'
137 137 profiles.append(profile)
138 138 return profiles
139 139
140 def _print_profiles(self, profiles):
141 """print list of profiles, indented."""
142 for profile in profiles:
143 print ' %s' % profile
144
140 145 def list_profile_dirs(self):
141 146 profiles = self._list_bundled_profiles()
142 147 if profiles:
143 148 print
144 149 print "Available profiles in IPython:"
145 for profile in profiles:
146 print ' ipython --profile=%s' % profile
150 self._print_profiles(profiles)
147 151 print
148 152 print " The first request for a bundled profile will copy it"
149 153 print " into your IPython directory (%s)," % self.ipython_dir
150 print " where you can customize it to your needs."
154 print " where you can customize it."
151 155
152 156 profiles = self._list_profiles_in(self.ipython_dir)
153 157 if profiles:
154 158 print
155 159 print "Available profiles in %s:" % self.ipython_dir
156 for profile in profiles:
157 print ' ipython --profile=%s' % profile
160 self._print_profiles(profiles)
158 161
159 162 profiles = self._list_profiles_in(os.getcwdu())
160 163 if profiles:
161 164 print
162 165 print "Available profiles in current directory (%s):" % os.getcwdu()
163 for profile in profiles:
164 print ' ipython --profile=%s' % profile
166 self._print_profiles(profiles)
167
168 print
169 print "To use any of the above profiles, start IPython with:"
170 print " ipython --profile=<name>"
171 print
165 172
166 173 def start(self):
167 174 self.list_profile_dirs()
General Comments 0
You need to be logged in to leave comments. Login now