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

Function find_data_files

setupbase.py:89–110  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

87#---------------------------------------------------------------------------
88
89def find_data_files():
90 """
91 Find IPython's data_files.
92
93 Just man pages at this point.
94 """
95
96 if "freebsd" in sys.platform:
97 manpagebase = Path("man") / "man1"
98 else:
99 manpagebase = Path("share") / "man" / "man1"
100
101 # Simple file lists can be made by hand
102 manpages = [f for f in Path("docs/man").glob("*.1.gz") if f.is_file()]
103 if not manpages:
104 # When running from a source tree, the manpages aren't gzipped
105 manpages = [f for f in Path("docs/man").glob("*.1") if f.is_file()]
106
107 # And assemble the entire output list
108 data_files = [(str(manpagebase), [str(f) for f in manpages])]
109
110 return data_files
111
112
113# 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…