We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3ca738 commit 582251aCopy full SHA for 582251a
app/admin/inst_book.rb
@@ -70,7 +70,7 @@ def upload_create
70
output_file = sanitize_filename('temp_' + current_user.id.to_s + '_' + Time.now.getlocal.to_s) + '_full.json'
71
output_file_path = "public/OpenDSA/config/temp/#{output_file}"
72
require 'open3'
73
- command = "python3 #{script_path} #{input_file} #{output_file_path}"
+ command = ". $(echo $python_venv_path) && python3 #{script_path} #{input_file} #{output_file_path}"
74
stdout, stderr, status = Open3.capture3(command)
75
76
unless status.success?
0 commit comments