예제 #1
0
def initialize(sandbox=True):
    # TODO: sandbox is ignored
    if 'fsc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['fsc']):
        return False
    return test_executor('FS', Executor, 'printfn "Hello, World!"')
예제 #2
0
def initialize(sandbox=True):
    # TODO: sandbox is ignored
    if "fsc" not in env["runtime"]:
        return False
    if not os.path.isfile(env["runtime"]["fsc"]):
        return False
    return test_executor("FS", Executor, 'printfn "Hello, World!"')
예제 #3
0
파일: CS.py 프로젝트: WallE256/judge
def initialize():
    if 'csc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['csc']):
        return False
    return test_executor('CS', Executor, '''\
using System;

class test {
    public static void Main(string[] args) {
        Console.WriteLine("Hello, World!");
    }
}''')
예제 #4
0
파일: CS.py 프로젝트: crazydreamer/judge
def initialize(sandbox=True):
    # TODO: sandbox is ignored
    if 'csc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['csc']):
        return False
    return test_executor('CS', Executor, '''\
using System;

class test {
    public static void Main(string[] args) {
        Console.WriteLine("Hello, World!");
    }
}''')
예제 #5
0
def initialize():
    if 'fsc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['fsc']):
        return False
    return test_executor('FS', Executor, 'printfn "Hello, World!"')