From 09bce24b11fc53793bbc20e14346a318f900efc9 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 27 Feb 2006 15:27:54 +0000 Subject: [PATCH] add clearer comment --- src/common/connection.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 73e894f3d..98c1f3c36 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -130,8 +130,9 @@ def get_os_info(): for distro_name in distro_info: path_to_file = distro_info[distro_name] if os.path.exists(path_to_file): - if os.access(path_to_file, os.X_OK): # is the file executable? - # yes, then run it and get output. (CRUX ONLY ATM) + if os.access(path_to_file, os.X_OK): + # the file is executable (f.e. CRUX) + # yes, then run it and get the first line of output. text = helpers.get_output_of_command(path_to_file)[0] else: fd = open(path_to_file)