Module: IronWorkerNG::Code::Runtime::Python

Includes:
Feature::Common::MergeExec::InstanceMethods, Feature::Python::MergePipDependency::InstanceMethods
Defined in:
lib/iron_worker_ng/code/runtime/python.rb

Instance Method Summary collapse

Methods included from Feature::Python::MergePipDependency::InstanceMethods

#merge_pip, #merge_pip_dependency_fixate

Methods included from Feature::Common::MergeExec::InstanceMethods

#merge_exec

Instance Method Details

#runtime_run_code(local = false) ⇒ Object



11
12
13
14
15
# File 'lib/iron_worker_ng/code/runtime/python.rb', line 11

def runtime_run_code(local = false)
  <<RUN_CODE
PATH=`pwd`/__pips__/__bin__:$PATH PYTHONPATH=`pwd`/__pips__ python -u #{File.basename(@exec.path)} "$@"
RUN_CODE
end