У меня XP. Питон 2.6.
http://www.scriptol.com/scripts/ctocpp.php отсюда скачал конвертер
читал мануал по конвертеру и питону.
Вот например мануал по смене директории
COMMAND: ctocpp -m mainfile.c olddir@newdir [olddir@newdir]
- mainfile.c is the file that holds the main() function.
- olddir is a directories where the files are stored.
- newdir is the new location.
- several old@new couples are required if the project stays inside several directories.
You can move all directories into a single one.
N.B.: If you move the files with a file manager, the #include statements will not be updated.
или вот хотя бы мануал для создания листа
COMMAND: ctocpp -l mainfile.c prjlist
- mainfile.c is the file that holds the main() function.
- prjlist is the name of the file that will contains the list of all .c sources of the project (you choose a name for it).
It will be overwritten without prompting.
———————————-
Пробовал начать командную строку в папку с сtocpp и там вводить сию команду то есть
ctocpp -l mainfile.c prjlist
Ничего не получалось. появлялась ошибка
python c2cpp\ctocpp.py -l mainfile.c prjlist не является командой или прогой бла бла бла
то есть я ввел команду которая вошла в .bat файл, в котором и было записано python c2cpp\ctocpp.py %1 %2 %3 %4 что видимо неправильно
пробовал разные варианты запуска, через GUI и командную строку - ничего не получалось
Как запустить .py файл с параметром или так чтобы он попросил параметр и я его ввел