dan-da / py2php

py2php is a utility that will auto-translate python code into PHP code.
GNU General Public License v2.0
98 stars 32 forks source link

Auto-convert recursively into subfolders? #4

Closed markkindred closed 6 years ago

markkindred commented 7 years ago

Is recognizing subfolders in which the python code resides then recursively entering and converting py code found within something that I will see when I use this converter?

dan-da commented 7 years ago

The php script translate_python_to_php will find all python files in a given directory and translate to php. It does not recurse at present.

It is a very simple script, and should be straight-forward to add sub-directory recrusion. If you add that functionality, please submit a pull request.

otherwise, i will keep this issue open and may add it later when I have some free time.

markkindred commented 7 years ago

Thanks! Due to a fully loaded docket, it's unlikely I can add the functionality, but I will try!

dan-da commented 6 years ago

I added a script build_all_py.php to build recursively in f340e9135021cc5ac9593b2f07dc7210daa0d6da.

It's very basic and only works on linux/unix for now. maybe can improve it later.