From 7c0e22e33fc429e5dbcbc6167bd7e8aa8bc11030 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Sat, 2 May 2020 10:40:27 -0500 Subject: [PATCH] - Defining global variable within function --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 6ad4e0e..9bac0f4 100755 --- a/setup.py +++ b/setup.py @@ -47,6 +47,7 @@ def install_ibus(): sys.exit() def setShortcuts(): + global distro distroVersion = cmdline("awk -F= '$1==\"VERSION_ID\" { print $2 ;}' /etc/os-release").replace('"','').strip() print("\nIf Kinto is already running it will be stopped...")