Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Dec 16, 2024
1 parent 7a42dfc commit eb36496
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@
"exprtk-custom-types",
]

def list_files(start_path):
for root, _, files in os.walk(start_path):
level = root.replace(start_path, "").count(os.sep)
indent = " " * 4 * (level)
print("{}{}/".format(indent, os.path.basename(root)))
sub_indent = " " * 4 * (level + 1)
for f in files:
print("{}{}".format(sub_indent, f))


if os.path.exists(mpfr_include := "/opt/homebrew/Cellar/mpfr"):
list_files(mpfr_include)
include_dirs.append(mpfr_include)

# noinspection PyTypeChecker
Expand Down

0 comments on commit eb36496

Please sign in to comment.