HewlettPackard / python-redfish-utility

Python-based utility for interacting with devices supporting a Redfish Service
Other
86 stars 41 forks source link

Allow importing from ilorest, not from root #59

Closed thomasgoirand closed 2 years ago

thomasgoirand commented 2 years ago

—–Allow import from ilorest not only root—–

Status

Description

This patch makes it possible to package ilorest in distributions. Currently, as it's importing from root, it's not possible to push the packaging into /usr/lib/python3/dist-packages, but with this patch, it works. I previously sent another PR which was obviously not possible to merge considering the current state of your packaging. Hopefully, this time it's ok with the try / except thing. Please allow this patch to get it, as it's extremply time consuming for me to rebase this patch on each upstream release. I just spent all of my morning (4 hours) doing so for this 3.5.1.0 release, I'd like to reduce this time to a minimum