Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/h/o/hortonworks-sandbox-HEAD/apps/pig/src/pig/views.py   hortonworks-sandbox(Download)
from pig.templeton import Templeton
from pig.forms import PigScriptForm, UDFForm
from pig.pig_client import PigClient
 
UDF_PATH = '/tmp/udfs/'
    pig_src = augmate_python_path(request.POST.get("python_script"), pig_src)
    if request.GET.get('t_s') == 'Explain':
        pig = PigClient("pig -e explain -script %s" % script_path, script_path, pig_src)
    else:
        pig = PigClient("pig -x local -check %s" % script_path, script_path, pig_src)