mirror of https://github.com/dnomd343/ProxyC
dnomd343
2 years ago
3 changed files with 12 additions and 10 deletions
@ -0,0 +1,11 @@ |
|||||
|
#!/usr/bin/env python3 |
||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
import compileall |
||||
|
from Basis.Logger import logging |
||||
|
|
||||
|
|
||||
|
def startCompile(dirRange: str = '/'): |
||||
|
for optimize in [-1, 1, 2]: |
||||
|
logging.warning('start compile -> %s (optimize = %i)' %(dirRange, optimize)) |
||||
|
compileall.compile_dir(dirRange, quiet = 1, maxlevels = 256, optimize = optimize) |
@ -1,10 +0,0 @@ |
|||||
#!/usr/bin/python |
|
||||
# -*- coding:utf-8 -*- |
|
||||
|
|
||||
import compileall |
|
||||
|
|
||||
maxLevels = 256 |
|
||||
compileDir = '/usr' |
|
||||
compileall.compile_dir(compileDir, quiet = 1, maxlevels = maxLevels) |
|
||||
compileall.compile_dir(compileDir, quiet = 1, maxlevels = maxLevels, optimize = 1) |
|
||||
compileall.compile_dir(compileDir, quiet = 1, maxlevels = maxLevels, optimize = 2) |
|
Loading…
Reference in new issue