Did I find the right examples for you? yes no

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/m/a/main-HEAD/Languages/IronPython/Public/Tools/Scripts/pyc.py   main(Download)
 
    print "Compiling..."
    clr.CompileModules(config.output + ".dll", mainModule = config.main_name, *config.files)
 
    if config.target != System.Reflection.Emit.PEFileKinds.Dll:

src/s/l/slipstream-HEAD/lib/ironpython/Tools/Scripts/pyc.py   slipstream(Download)
 
    print 'Compiling...'    
    clr.CompileModules(output + '.dll', mainModule = main_name, *files)
 
    if target != System.Reflection.Emit.PEFileKinds.Dll:

src/m/a/main-HEAD/Languages/IronPython/Scripts/run_compiled.py   main(Download)
 
    print "Compiling ", testName ,"..."
    clr.CompileModules("compiledTest.dll", testName)    
    File.Move(testName, testName+".bak")    
    try:

src/i/r/ironpython3-HEAD/Src/Scripts/run_compiled.py   ironpython3(Download)
 
    print "Compiling ", testName ,"..."
    clr.CompileModules("compiledTest.dll", testName)    
    File.Move(testName, testName+".bak")    
    try:

src/p/y/pygments.wlwriter-HEAD/pygments_package/build_pygments.py   pygments.wlwriter(Download)
 
import clr
clr.CompileModules(IO.Path.Combine(folder, "..\external\pygments.dll"), *all_files)

src/m/a/main-HEAD/Languages/IronPython/Tests/test_compiler.py   main(Download)
        counter+=1
    dllFile = path_combine(testpath.temporary_dir, name + ".dll")
    clr.CompileModules(dllFile, mainModule=inputFiles[0], *inputFiles)
    delete_files(*inputFiles)
    clr.AddReferenceToFileAndPath(dllFile)
        fileList.append(filePath)
    dllFile = path_combine(testpath.temporary_dir, packageName + ".dll")
    clr.CompileModules(dllFile, mainModule=fileList[0], *fileList)
    delete_files(*fileList)
    clr.AddReferenceToFileAndPath(dllFile)
def test_load_order_modfile():
    fileName = path_combine(testpath.temporary_dir,"loadOrderMod.py")
    dllName = path_combine(testpath.temporary_dir,"loadOrderMod.dll")
    write_to_file(fileName, "def f(): return 'hello'")
    clr.CompileModules(dllName, fileName)
def test_overwrite():    
    write_to_file(path_combine(testpath.temporary_dir, "overwrite.py"), "def foo(): return 'bar'")
    dllFile = path_combine(testpath.temporary_dir, "overwrite.dll")
    clr.CompileModules(dllFile, path_combine(testpath.temporary_dir, "overwrite.py"))
    write_to_file(path_combine(testpath.temporary_dir, "overwrite1.py"), "def foo(): return 'boo'")
    clr.CompileModules(dllFile, path_combine(testpath.temporary_dir, "overwrite1.py"))

src/i/r/ironpython3-HEAD/Tests/test_compiler.py   ironpython3(Download)
        counter+=1
    dllFile = path_combine(testpath.temporary_dir, name + ".dll")
    clr.CompileModules(dllFile, mainModule=inputFiles[0], *inputFiles)
    delete_files(*inputFiles)
    clr.AddReferenceToFileAndPath(dllFile)
        fileList.append(filePath)
    dllFile = path_combine(testpath.temporary_dir, packageName + ".dll")
    clr.CompileModules(dllFile, mainModule=fileList[0], *fileList)
    delete_files(*fileList)
    clr.AddReferenceToFileAndPath(dllFile)
def test_load_order_modfile():
    fileName = path_combine(testpath.temporary_dir,"loadOrderMod.py")
    dllName = path_combine(testpath.temporary_dir,"loadOrderMod.dll")
    write_to_file(fileName, "def f(): return 'hello'")
    clr.CompileModules(dllName, fileName)
def test_overwrite():    
    write_to_file(path_combine(testpath.temporary_dir, "overwrite.py"), "def foo(): return 'bar'")
    dllFile = path_combine(testpath.temporary_dir, "overwrite.dll")
    clr.CompileModules(dllFile, path_combine(testpath.temporary_dir, "overwrite.py"))
    write_to_file(path_combine(testpath.temporary_dir, "overwrite1.py"), "def foo(): return 'boo'")
    clr.CompileModules(dllFile, path_combine(testpath.temporary_dir, "overwrite1.py"))