@@ -16,9 +16,9 @@ function get_platform()
1616 if ofs .ExtensionDir ():find (" ^/home/" ) ~= nil then
1717 local home = os.getenv ( " HOME" )
1818 print (" User Home: " , home )
19- if exists (home .. " /miniconda /envs/funscript-editor" ) then
19+ if exists (home .. " /miniconda3 /envs/funscript-editor" ) then
2020 return " Linux, Conda"
21- elseif exists (home .. " /anaconda /envs/funscript-editor" ) then
21+ elseif exists (home .. " /anaconda3 /envs/funscript-editor" ) then
2222 return " Linux, Conda"
2323 else
2424 return " Linux, Python"
@@ -64,13 +64,7 @@ function start_funscript_generator()
6464 table.insert (args , ofs .ExtensionDir () .. " /Python-Funscript-Editor/funscript-editor.py" )
6565 elseif platform == " Linux, Conda" then
6666 cmd = " /usr/bin/bash"
67- table.insert (args , " -i" )
68- table.insert (args , " -c" )
69- table.insert (args , " '" )
70- table.insert (args , " conda" )
71- table.insert (args , " activate" )
72- table.insert (args , " funscript-editor;" )
73- table.insert (args , " python3" )
67+ table.insert (args , ofs .ExtensionDir () .. " /Python-Funscript-Editor/conda_wrapper.sh" )
7468 else
7569 print (" ERROR: Platform Not Implemented (" , platform , " )" )
7670 end
@@ -88,12 +82,8 @@ function start_funscript_generator()
8882 table.insert (args , tostring (script .actions [next_action ].at ))
8983 end
9084
91- if platform == " Linux, Conda" then
92- table.insert (args , " '" )
93- end
94-
9585 print (" cmd: " , cmd )
96- print (" args: " , args )
86+ print (" args: " , table.unpack ( args ) )
9787
9888 processHandleMTFG = ofs .CreateProcess (cmd , table.unpack (args ))
9989
0 commit comments