added a global cache directory, not fully properly implemented, and dose not respect t.ex the FreeDesktop specifications for cache directories and files OPS this is a partial commit! things might not add up on this commit.
This commit is contained in:
@@ -14,11 +14,13 @@ def connect(data):
|
||||
return responce.decode("utf-8")
|
||||
|
||||
def print_output(text):
|
||||
data = {"function": "print_output", "arguments": [{"name": "text", "value": text}]}
|
||||
data = {"function": "print_output", "container_id": CONTAINER_ID, "text": text}
|
||||
connect(json.dumps(data))
|
||||
|
||||
def _neurodock_print(*args, **kwargs):
|
||||
text = " ".join(str(a) for a in args)
|
||||
print_output(text)
|
||||
|
||||
builtins.print = _neurodock_print
|
||||
builtins.print = _neurodock_print
|
||||
|
||||
## Following is the generated
|
||||
Reference in New Issue
Block a user