Skip to content

Commit 582251a

Browse files
committed
fix python path
Signed-off-by: Alex Hicks <[email protected]>
1 parent b3ca738 commit 582251a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/admin/inst_book.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def upload_create
7070
output_file = sanitize_filename('temp_' + current_user.id.to_s + '_' + Time.now.getlocal.to_s) + '_full.json'
7171
output_file_path = "public/OpenDSA/config/temp/#{output_file}"
7272
require 'open3'
73-
command = "python3 #{script_path} #{input_file} #{output_file_path}"
73+
command = ". $(echo $python_venv_path) && python3 #{script_path} #{input_file} #{output_file_path}"
7474
stdout, stderr, status = Open3.capture3(command)
7575

7676
unless status.success?

0 commit comments

Comments
 (0)