fixed path

This commit is contained in:
Boyan 2025-01-12 19:01:17 +01:00
parent 5e34464718
commit cecde4478d

View File

@ -23,7 +23,11 @@ def dynamic_includes(folder_path):
f.write("% Autogenerated by unifytex (git.confest.im/boyan_k/Coding_Tools/)\n") f.write("% Autogenerated by unifytex (git.confest.im/boyan_k/Coding_Tools/)\n")
for file in sorted(files): for file in sorted(files):
if file.endswith(".tex"): if file.endswith(".tex"):
relative_path = os.path.relpath(os.path.join(root, file), folder_path) relative_path = os.path.relpath(
os.path.join(root, file),
os.path.dirname(os.path.abspath(folder_path))
)
f.write(f"\\input{{{relative_path}}}\n") f.write(f"\\input{{{relative_path}}}\n")
print(f"Generated {output_file}") print(f"Generated {output_file}")