Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit 09c2b07

Browse files
committed
v 0.5.1
portable run fixes
1 parent c98755b commit 09c2b07

24 files changed

+2212
-418
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
venv/
2-
Python2FlowChart.egg-info/
2+
Python2FlowChart.egg-info/
3+
.vscode/
4+
.idea/
5+
libs/

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"program": "Python2FlowChart/__main__.py",
1212
"console": "integratedTerminal",
1313
"justMyCode": true,
14-
"args": ["/home/oleg/Рабочий стол/example.py" ]
14+
"args": ["Python2FlowChart/debug/example.py" ]
1515
},
1616
{
1717
"name": "run with preview",
@@ -20,7 +20,7 @@
2020
"program": "Python2FlowChart/debug/debug.py",
2121
"console": "integratedTerminal",
2222
"justMyCode": true,
23-
"args": ["/home/oleg/Рабочий стол/example.py" ]
23+
"args": ["/debug/example.py" ]
2424
}
2525
]
2626
}

Python2FlowChart/Py2BlockDiagram.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from PyChart.BlockDiagram import BlockDiagram
1+
from PyChart import BlockDiagram
22

33

44
class Py2BlockDiagram(BlockDiagram):
@@ -17,7 +17,7 @@ def _get_struct_type(line: str) -> str:
1717
return 'loop'
1818
elif line[0:5] == 'while':
1919
return 'loop'
20-
elif line[0:3] == 'def':
20+
elif line[0:4] == 'def ':
2121
return 'function'
2222
else:
2323
if 'print' in line:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import re
2-
from PyChart.PseudoCode import PseudoCode
2+
from PyChart import PseudoCode
33

44

5-
class Python2PseudoCode(PseudoCode):
5+
class Py2PseudoCode(PseudoCode):
66

77
@staticmethod
88
def to_pseudocode(lines: str) -> str:

0 commit comments

Comments
 (0)