From 673309a161ad03988c2291315edfc7a235303abb Mon Sep 17 00:00:00 2001 From: Claudio Scafuri <claudio.scafuri@elettra.eu> Date: Thu, 31 Mar 2022 11:08:09 +0200 Subject: [PATCH] python3 --- Makefile | 2 +- src/SRinfo.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9fe00f5..2cad07a 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ PY_FILES += $(wildcard src/*.py) default: bin ${PY_FILES} @cp ${PY_FILES} bin/${DIRNAME} - @echo "#!/usr/bin/env python\nimport sys\nsys.path.append(sys.path[0]+'/${DIRNAME}')\nfrom ${MODNAME} import main\nif __name__ == '__main__':\n main()\n" > bin/${NAME} + @echo "#!/usr/bin/env python3\nimport sys\nsys.path.append(sys.path[0]+'/${DIRNAME}')\nfrom ${MODNAME} import main\nif __name__ == '__main__':\n main()\n" > bin/${NAME} @chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN} bin: diff --git a/src/SRinfo.py b/src/SRinfo.py index 3aa7bec..e9a1940 100755 --- a/src/SRinfo.py +++ b/src/SRinfo.py @@ -291,9 +291,9 @@ def main(): U.server_run() except PyTango.DevFailed as e: - print ('-------> Received a DevFailed exception:', e) + print(('-------> Received a DevFailed exception:', e)) except Exception as e: - print ('-------> An unforeseen exception occured....', e) + print(('-------> An unforeseen exception occured....', e)) if __name__ == '__main__': main() -- GitLab