lib/apijs_attachment.rb in redmine_apijs-6.9.1 vs lib/apijs_attachment.rb in redmine_apijs-6.9.2

- old
+ new

@@ -1,8 +1,8 @@ # encoding: utf-8 # Created V/27/12/2013 -# Updated J/21/04/2022 +# Updated V/02/09/2022 # # Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr> # https://www.luigifab.fr/redmine/apijs # # This program is free software, you can redistribute it or modify @@ -151,10 +151,12 @@ end # commande python def getPython + return @cmd if defined? @cmd + if Redmine::Platform.mswin? cmd = `python.exe --version` if $? == 0 cmd = 'python.exe' else @@ -172,9 +174,10 @@ else cmd = nil end end + @cmd = cmd return cmd end def getCmd(source, target, width, height, fixed=false) \ No newline at end of file