From e85b4c4b23a302c19d714a10bb4597bee16b154f Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 1 May 2019 00:38:09 +0200 Subject: [PATCH] fix raspbian detection --- wo/core/variables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wo/core/variables.py b/wo/core/variables.py index eb7ea80..86057cd 100644 --- a/wo/core/variables.py +++ b/wo/core/variables.py @@ -32,7 +32,8 @@ class WOVariables(): wo_date = datetime.datetime.now().strftime('%d%b%Y%H%M%S') # WordOps core variables - wo_platform_distro = platform.linux_distribution()[0].lower() + wo_platform_distro = os.popen("lsb_release -si " + "| tr -d \'\\n\'").read().lower() wo_platform_version = platform.linux_distribution()[1] wo_platform_codename = os.popen("lsb_release -sc | tr -d \'\\n\'").read()