|
6 | 6 | + Improve function; the new `RunPy()` - with `showcmd=True` function doesn't need to create file, with `showcmd=`
|
7 | 7 | + Remove `keepFileData` attributes and add `showcmd`
|
8 | 8 | + Enhanced PyWimVBA performance
|
9 |
| -+ Keeps the old PyWimVBA function (In version 5.2) and rename it to `RunPyOld` |
| 9 | ++ Keeps the old PyWimVBA function (In version 5.2) and renames it to `RunPyOld` |
10 | 10 | + Added iline attributes
|
11 | 11 | # Where's the lower version of PythonWimVBA?
|
12 |
| -> **Lower Version is tested privately; some versions are publicly released, but they are pre-release. They're outdated, unsecure and unstable, so please use only version 5.2 or above** |
| 12 | +> **Lower Version is tested privately; some versions are publicly released, but they are pre-release. They're outdated, unsecure and unstable, so please use only version 5.2 or above**. |
13 | 13 |
|
14 | 14 | # Usage
|
15 |
| -**Command:** `RunPy(code, [pythonPath = "python"], [showcmd = True], [iline = False],[UseDebug=False])` |
| 15 | +**Command:** `RunPy(code, [pythonPath = "python"], [showcmd = True], [iline = False], [UseDebug =False])` |
16 | 16 | + Code splitting by ";;" , e.x : `import time;;time.sleep(5)`
|
17 | 17 | + With `showcmd=True` performance will be better than `showcmd=False` (because of `showcmd=False` must create logfile to catch log, `showcmd=True` mustn't)
|
18 |
| -- **iline** |
| 18 | +- **[Optional OR Compulsory]iline** |
19 | 19 | - `Iline` attributes convert code from
|
20 | 20 | - `import time`
|
21 | 21 | - `time.sleep(2)`
|
|
27 | 27 | **Command:** ``RunPy(code,pythonPath, [ keepFileData = False] , [UseDebug = False])``
|
28 | 28 | + Code splitting by ";;" , e.x : `import time;;time.sleep(5)`
|
29 | 29 | + [Optional] keepFileData: Keep the output file and code file after finishing execution.
|
30 |
| -+ [Optional] UseDebug: Show cmd that runs python code, keep it alive with it's output [Use debug to catch errors, Output file may not catch them. So when debug is enabled, Output file does nothing.] |
| 30 | ++ [Optional] UseDebug: Show cmd that runs python code and keep it alive with it's output [Use debug to catch errors, the output file may not catch them. So when debug is enabled, Output file does nothing. |
31 | 31 |
|
32 | 32 |
|
33 | 33 | ---
|
|
38 | 38 | | Easy-Debug | :star: (very good, with `showcmd = False & UseDebug=True`,`showcmd = True` is not recommend for debugging) | :star2: (amazing,with `UseDebug & keepFileData=True`)|
|
39 | 39 | | Easy-To-Use | :ok_hand: |:ok_hand: |
|
40 | 40 | | Cache file | :raised_hands: (no cache, but `showcmd=False` needs create logfile) | :turtle: (must create logfile,code file) |
|
| 41 | + |
| 42 | + |
| 43 | +# Some advices? |
| 44 | ++ Although both PyWimVba Function - New and old have it debug method, i suggest you write and debug your code in a code editor like `Visual Studio Code`, `Sublime Text`. And then , replace all the newline with `;;` and paste it into your vba scripts |
0 commit comments