Skip to content

Instantly share code, notes, and snippets.

View tomtebender's full-sized avatar

Tomte tomtebender

View GitHub Profile
@tomtebender
tomtebender / finc.py
Last active March 8, 2026 15:52
Find includes and check if they are there or not
#!/usr/bin/python3
# Copyright © 2026 Tomte Bender <tomte.bender@gmail.com>
# This file is licensed under tomteb's Quick License. If a copy of the license was
# not provided together with this file, you can recieve one at <https://github.com/tomtebender/tbql-license/blob/main/LICENSE>.
import sys, re, os
from os.path import dirname
def walk_includes(fpath):
function tab2str(tab)
local s = "{"
for i,v in pairs(tab) do
if type(v) == "table" then
s = s.."{"
for it,vt in pairs(v) do
if type(vt) == "table" then
s = s.."{"
s = s..stringall.table(vt)
if it ~= #v then