M #-: fallback to python3 (#3)

This commit is contained in:
Jan Orel authored and GitHub committed 2020-06-11 16:11:12 +02:00
1 parent b42717ee65
commit f39ff7f095
1 file changed
+4 -1
+4 -1
View File
@@ -152,7 +152,10 @@ class OpenNebulaVNC
proxy_options << " -6"
end
cmd ="python #{@proxy_path} #{proxy_options} #{@proxy_port}"
python = 'python3' if system("python3 -c True")
python = 'python' if system("python -c True")
cmd ="#{python} #{@proxy_path} #{proxy_options} #{@proxy_port}"
begin
@logger.info { "Starting VNC proxy: #{cmd}" }