-
Notifications
You must be signed in to change notification settings - Fork 4
Enhancement have 4 outputs #65
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
Enhancement have 4 outputs #65
Conversation
src/osparc_python_runner/main.py
Outdated
| def setup(): | ||
| _ensure_output_subfolders() | ||
| logger.info("Processing input from %s:", INPUT_FOLDER) | ||
| logger.info("%s", list(INPUT_FOLDER.glob("*"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be more informative to have simply a os.system. See this example
>> import os
>> os.system("ls -la")
total 20
drwxrwxr-x 3 crespo crespo 4096 Sep 15 18:28 .
drwxrwxr-x 3 crespo crespo 4096 Jun 24 2021 ..
-rw-rw-r-- 1 crespo crespo 1312 Sep 15 18:28 input_script_1.py
drwxrwxr-x 2 crespo crespo 4096 Sep 15 18:22 __pycache__
-rw-rw-r-- 1 crespo crespo 20 Sep 15 18:10 requirements.txt
0you can build a context manager to capture the stdout or use something like subprocess.run instead of os.system
src/osparc_python_runner/main.py
Outdated
| logger.info("%s", list(INPUT_FOLDER.glob("*"))) | ||
|
|
||
| # find entrypoint | ||
| user_main_py = _ensure_main_entrypoint(INPUT_FOLDER) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MINOR: re-suggesting a name ;-) ... main_input_path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tried another
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 !! record time!
Please double check my comment with the path before merging ...
Great work!
thx
What do these changes do?
Adds 3 outputs to the python runner.
Prepare for integration version 1.1.0
Related issue number
How to test
Checklist
make version-service-*