fix logic

This commit is contained in:
Nikos Kouremenos 2006-02-27 15:25:06 +00:00
parent a1b1538c54
commit 7a666ca03b
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ def get_os_info():
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)
text = helpers.get_output_of_command(path_to_file)
text = helpers.get_output_of_command(path_to_file)[0]
else:
fd = open(path_to_file)
text = fd.readline().strip() # get only first line