Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.6/site-packages/rhsmlib/facts/__pycache__/ |
Upload File : |
3 a�e� � @ sp d dl mZmZmZ d dlZd dlZd dlZd dlmZ ej e �Zd dd�ZG dd� de �ZG dd � d e�ZdS )� )�print_function�division�absolute_importN)� collectionc C s� d}d}| p|} | |kr t j� S tjj| |�}y"t|d��}|j� j� S Q R X W n. tk r~ } zt j |� � W Y dd}~X nX dS )a Get the systems architecture. This relies on portable means, like uname to determine a high level system arch (ie, x86_64, ppx64,etc). We need that so we can decide how to collect the arch specific hardware information. Also support a 'prefix' arg that allows us to override the results. The contents of the '/prefix/arch' will override the arch. The 'prefix' arg defaults to None, equiv to '/'. This is intended only for test purposes. Returns a string containing the arch.�/�arch�rN)�platform�machine�os�path�join�open�read�strip�IOError�logZ exception)�prefixZDEFAULT_PREFIXZARCH_FILE_NAMEZ arch_fileZarch_fd�e� r �!/usr/lib64/python3.6/collector.py�get_arch s r c @ s&