Skip to content

A Python tool to automatically fix `#include "@/..."` paths in C/C++ source files by converting them to proper relative paths.

License

Notifications You must be signed in to change notification settings

BaseMax/c-importpath-fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

c-importpath-fixer

A Python tool to automatically fix #include "@/..." paths in C/C++ source files by converting them to proper relative paths.

Usage

python3 c-importpath-fixer.py [project-root]

By default, it scans the current directory. You can optionally pass the root of the project.

Example

Before:

#include "@/include/myheader.h"

After:

#include "../include/myheader.h"

License

MIT

Copyright 2025, Max Base

About

A Python tool to automatically fix `#include "@/..."` paths in C/C++ source files by converting them to proper relative paths.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages