diff options
author | Chris Johns <chrisj@rtems.org> | 2021-05-10 11:57:55 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2021-05-21 16:47:19 +1200 |
commit | 1361d2cd30fdaf95b34ee914d0f7935febb2a950 (patch) | |
tree | 9f6f4b29363bd53776c30fcd295fcb65b906c30c /common | |
parent | posix-compliance: Update to include POSIX 1003.1-2017 (Issue 7). (diff) | |
download | rtems-docs-1361d2cd30fdaf95b34ee914d0f7935febb2a950.tar.bz2 |
Fix the linux specific include
Diffstat (limited to 'common')
-rw-r--r-- | common/latex.py | 8 |
1 files changed, 4 insertions, 4 deletions
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] |