einsteinify-1.1.1
توضیحات
A package that transforms every C #include absolute path to a given directory to a relative path to the .c or .h file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | einsteinify-1.1.1 |
| نام | einsteinify |
| نسخه کتابخانه | 1.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Eugenio Berretta |
| ایمیل نویسنده | euberdeveloper@gmail.com |
| آدرس صفحه اصلی | https://github.com/euberdeveloper/einsteinify |
| آدرس اینترنتی | https://pypi.org/project/einsteinify/ |
| مجوز | MIT |
# einsteinify
A pip moudle that transforms every C #include absolute path to a given directory to a relative path to the .c or .h file
## Install
You can install einsteinify with pip:
```sh
$ pip install einsteinify
```
## Project purpose
It may happen that you have a folder with `.c` and `.h` files where some the `#include "*.h"` are **global paths** to respect to the root folder. This module makes them **relative paths** to the root folder.
## Usage (global module)
```sh
$ einsteinify path/to/root/folder
```
## Usage (local module)
```python
from einsteinify import einsteinify
PATH = 'path/to/root/folder'
einsteinify(PATH)
```
## Result
Suppose that you have a directory like this:
```
root
├── main.h
├── other.h
├─> services
│ └── services.h
└─> utils
└── utils.h
```
Where initially:
**main.h**
```c
#include "root/other.h"
#include "root/services/services.h"
```
**other.h**
```c
#include "root/utils/utils.h"
```
**utils.h**
```c
#include "root/other.h"
#include "root/services/services.h"
```
After running **einsteinify** the includes would be:
**main.h**
```c
#include "./other.h"
#include "./services/services.h"
```
**other.h**
```c
#include "./utils/utils.h"
```
**utils.h**
```c
#include "../other.h"
#include "../services.h"
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl einsteinify-1.1.1:
pip install einsteinify-1.1.1.whl
نصب پکیج tar.gz einsteinify-1.1.1:
pip install einsteinify-1.1.1.tar.gz