-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.py
instead of the module itself. This happens usingvirtualenv
with its startup script.Closes #62
Closes #59