Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 707 Bytes
require 'iron_worker_ng/feature/python/merge_pip_dependency'
require 'iron_worker_ng/feature/python/merge_pip'
require 'iron_worker_ng/feature/python/merge_requirements'
module IronWorkerNG
module Code
module Runtime
module Python
include IronWorkerNG::Feature::Common::MergeExec::InstanceMethods
include IronWorkerNG::Feature::Python::MergePipDependency::InstanceMethods
include IronWorkerNG::Feature::Python::MergeRequirements::InstanceMethods
def runtime_run_code(local, params)
<<RUN_CODE
PATH=`pwd`/__pips__/__bin__:$PATH PYTHONPATH=`pwd`/__pips__ python -u #{File.basename(@exec.path)} #{params}
RUN_CODE
end
end
end
end
end