Sitelet https://github.com/andreikop/cpp2python/commit/76b91d8a69368dce658aa5f1d65104c00107b9a3
Skip to content

Commit 76b91d8

Browse files
committed
suffix documentation
1 parent 5d7b534 commit 76b91d8

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
3133
Andrei Kopats <hlamer@tut.by>

‎cpp2python.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
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
2932
Author: Andrei Kopats <hlamer@tut.by>
3033
License: 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)

0 commit comments

Comments
 (0)