File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ astyle --style=ansi your.cpp source.cpp files.cpp
2626 cpp2python.py FILE Process the file
2727 cpp2python.py -v|--version|-h|--help Display the help message
2828
29+ After the processing new file is created.
30+ File name is {old file name with suffix}.py. i.e. main.cpp.py
2931
3032### Author
3133Andrei Kopats < hlamer@tut.by >
Original file line number Diff line number Diff line change 2323
2424 cpp2python.py DIR Find C/C++ files in the directory
2525 by suffix and process.
26- cpp2python.py FILE Process the file
27- cpp2python.py -v|--version|-h|--help Display the help message
26+ cpp2python.py FILE Process the file.
27+ cpp2python.py -v|--version|-h|--help Display the help message.
28+
29+ After the processing new file is created.
30+ File name is {old file name with suffix}.py. i.e. main.cpp.py
2831
2932Author: Andrei Kopats <hlamer@tut.by>
3033License: GPL
@@ -303,7 +306,7 @@ def main():
303306 if os .path .isdir (sys .argv [1 ]):
304307 for root , dirs , files in os .walk (sys .argv [1 ]):
305308 for file in files :
306- in_filename = root + '/' + file
309+ in_filename = root + '/' + file
307310 if is_source (in_filename ):
308311 out_filename = in_filename + '.py' # not ideal
309312 process_file (in_filename , out_filename )
You can’t perform that action at this time.
0 commit comments