From 1361d2cd30fdaf95b34ee914d0f7935febb2a950 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 10 May 2021 11:57:55 +1000 Subject: Fix the linux specific include --- common/latex.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/latex.py b/common/latex.py index a1b3917..17d3015 100644 --- a/common/latex.py +++ b/common/latex.py @@ -4,10 +4,6 @@ import os import re -try: - from distro import linux_distribution -except: - from platform import linux_distribution package_test_preamble = ['\\newif\\ifsphinxKeepOldNames \\sphinxKeepOldNamestrue', '\documentclass[a4paper,11pt,english]{report}'] @@ -85,6 +81,10 @@ def tex_test(test): def host_name(): uname = os.uname() if uname[0] == 'Linux': + try: + from distro import linux_distribution + except: + from platform import linux_distribution distro = linux_distribution() name = '%s/%s' % (uname[0], distro[0]) version = distro[1] -- cgit v1.2.3