Fix main for Python2#63
Conversation
Codecov Report
@@ Coverage Diff @@
## master #63 +/- ##
==========================================
- Coverage 85.57% 85.37% -0.21%
==========================================
Files 13 13
Lines 832 834 +2
==========================================
Hits 712 712
- Misses 120 122 +2
Continue to review full report at Codecov.
|
|
Please can we also make the script optional, so running |
|
That's #59, then the python2 support can be dropped |
This restores previous behaviour of the pythonSoftIOC executable, which would give you a Python command line interpreter.
|
@thomascobb I've committed the fix for #59. Manual testing on the command line indicates it'll now pass everything, to a script. Used below is a simple test.py script that just prints |
|
behaviour looks good, although I can't see the commit that adds this... |
Fix the main function for Python2. When this is merged a new release should be done.
Note the version import change is not strictly required, it's just a fix for cases when
__main__has been imported by someone else, which caused the import to pick upsoftioc.pyinstead of the module itself. This happens usingvirtualenvwith its startup script.Closes #62
Closes #59