mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-01-05 22:17:48 -05:00
The program 'realpath' does not come installed on Mac OS. This caused the bash script 'makedoc' to fail on Mac. The only place I used realpath was to convert relative paths to absolute paths for filenames passed to check_internal_links.py. It turns out Python has a standard function os.path.realpath() that does the same thing, so I moved the logic into the Python script itself. Thus makedoc no longer needs the realpath program, and the Python function will work on all platforms. There is a general lesson here: in the future I will consider moving more of my scripting logic into Python. It has proven to be more portable than a mixture of bash scripts and Windows batch files.
1.6 KiB
Executable File
1.6 KiB
Executable File