Only the base part of startPath is kept, since this routine is typically
used with a script’s __file__ variable as startPath. The base of startPath
is then prepended to all the listed files, forming the output list.

Parameters:

startPath : string

Initial path to use as the base for the results. This path is split
using os.path.split() and only its first component is kept.

Return appropriate IPython command line name. By default, this will return
a list that can be used with subprocess.Popen, for example, but passing
as_string=True allows for returning the IPython command as a string.