summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2020-03-11 11:13:25 -0700
committerPatrick Griffis <tingping@tingping.se>2020-03-11 11:13:25 -0700
commit3871fbaacb580e959f0d358cc18a76de6b8fd6a4 (patch)
treed18294416bdcf082c8be78a1b5984e1eadf18d93 /plugins
parent5deb69591992d4fede9090b60d3dc847612a4d60 (diff)
build: Fix potential undefined variable
Diffstat (limited to 'plugins')
-rw-r--r--plugins/python/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/python/meson.build b/plugins/python/meson.build
index eb762134..5fd7ec2f 100644
--- a/plugins/python/meson.build
+++ b/plugins/python/meson.build
@@ -3,8 +3,10 @@ if python_opt.startswith('python3')
   # Python 3.8 introduced a new -embed variant
   if not python_opt.endswith('-embed')
     python_dep = dependency(python_opt + '-embed', version: '>= 3.3', required: false)
-  endif
-  if not python_dep.found()
+    if not python_dep.found()
+      python_dep = dependency(python_opt, version: '>= 3.3')
+    endif
+  else
     python_dep = dependency(python_opt, version: '>= 3.3')
   endif
 else