Skip to content

Commit 7328940

Browse files
author
arch
committed
conda testing
1 parent 164019a commit 7328940

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

conda_wrapper.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
source ~/anaconda3/etc/profile.d/conda.sh 2>/dev/null
4+
source ~/miniconda3/etc/profile.d/conda.sh 2>/dev/null
5+
conda activate funscript-editor
6+
python3 `dirname $0`/funscript-editor.py $@

contrib/Installer/assets/main.lua

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)