Find IPython's data_files. Just man pages at this point.
()
| 87 | #--------------------------------------------------------------------------- |
| 88 | |
| 89 | def 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…