diff --git a/src/aiidalab_qe/common/setup_codes.py b/src/aiidalab_qe/common/setup_codes.py index d2ef9ff73..0da53b237 100644 --- a/src/aiidalab_qe/common/setup_codes.py +++ b/src/aiidalab_qe/common/setup_codes.py @@ -99,6 +99,7 @@ def _generate_header_to_setup_code(): def _generate_string_to_setup_code(code_name, computer_name="localhost"): """Generate the Python string to setup an AiiDA code for a given computer. + Tries to load an existing code and if not existent, generates Python code to create and store a new code setup.""" try: @@ -130,6 +131,7 @@ def _generate_string_to_setup_code(code_name, computer_name="localhost"): ) return python_code else: + # the code already exists return ""