minor improvements

This commit is contained in:
Jerome Kieffer 2023-12-01 13:35:11 +01:00
parent 4a4aa9bc6d
commit 8226ffff94
3 changed files with 3 additions and 1 deletions

View File

@ -225,6 +225,7 @@ if __name__ == "__main__":
else:
logger.error("Script %s not found", script)
else:
logging.info("Running IPython by default")
logger.info("Patch the sys.argv: %s", sys.argv)
sys.path.insert(2, "")
try:

View File

@ -42,7 +42,7 @@ then
if [ -z $debian_version ]
then
#we are probably on a ubuntu platform
debian_version=$(cat /etc/debian_version | cut -d/ -f1)
debian_version=$(< /etc/debian_version cut -d/ -f1)
case $debian_version in
squeeze)
debian_version=6

View File

@ -276,6 +276,7 @@ def report_rst(cov, package, version="0.0.0", base="", inject_xml=None):
else:
fn = inject_xml
from lxml import etree
xml = etree.parse(fn)
classes = xml.xpath("//class")