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

Function find_data_files

setupbase.py:158–179  ·  view source on GitHub ↗

Find IPython's data_files. Just man pages at this point.

()

Source from the content-addressed store, hash-verified

156#---------------------------------------------------------------------------
157
158def find_data_files():
159 """
160 Find IPython's data_files.
161
162 Just man pages at this point.
163 """
164
165 if "freebsd" in sys.platform:
166 manpagebase = pjoin('man', 'man1')
167 else:
168 manpagebase = pjoin('share', 'man', 'man1')
169
170 # Simple file lists can be made by hand
171 manpages = [f for f in glob(pjoin('docs','man','*.1.gz')) if isfile(f)]
172 if not manpages:
173 # When running from a source tree, the manpages aren't gzipped
174 manpages = [f for f in glob(pjoin('docs','man','*.1')) if isfile(f)]
175
176 # And assemble the entire output list
177 data_files = [ (manpagebase, manpages) ]
178
179 return data_files
180
181
182# The two functions below are copied from IPython.utils.path, so we don't need

Callers 1

setup.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected