Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/share/Modules/init
File: python.py
import os, re, subprocess
[0] Fix | Delete
[1] Fix | Delete
# define modules runtine quarantine configuration
[2] Fix | Delete
os.environ['MODULES_RUN_QUARANTINE'] = 'LD_LIBRARY_PATH LD_PRELOAD'
[3] Fix | Delete
[4] Fix | Delete
# setup quarantine if defined
[5] Fix | Delete
_mlre = os.environ.copy()
[6] Fix | Delete
if 'MODULES_RUN_QUARANTINE' in os.environ:
[7] Fix | Delete
for _mlv in os.environ['MODULES_RUN_QUARANTINE'].split():
[8] Fix | Delete
if re.match('^[A-Za-z_][A-Za-z0-9_]*$', _mlv):
[9] Fix | Delete
if _mlv in os.environ:
[10] Fix | Delete
_mlre[_mlv + '_modquar'] = os.environ[_mlv]
[11] Fix | Delete
_mlrv = 'MODULES_RUNENV_' + _mlv
[12] Fix | Delete
if _mlrv in os.environ:
[13] Fix | Delete
_mlre[_mlv] = os.environ[_mlrv]
[14] Fix | Delete
else:
[15] Fix | Delete
_mlre[_mlv] = ''
[16] Fix | Delete
[17] Fix | Delete
# define module command and surrounding initial environment (default value
[18] Fix | Delete
# for MODULESHOME, MODULEPATH, LOADEDMODULES and parse of init config files)
[19] Fix | Delete
exec(subprocess.Popen(['/usr/bin/tclsh', '/usr/share/Modules/libexec/modulecmd.tcl', 'python', 'autoinit'], stdout=subprocess.PIPE, env=_mlre).communicate()[0])
[20] Fix | Delete
[21] Fix | Delete
# clean temp variable used to setup quarantine
[22] Fix | Delete
del _mlre
[23] Fix | Delete
[24] Fix | Delete
# redefine module command if compat version has been activated
[25] Fix | Delete
if 'MODULES_USE_COMPAT_VERSION' in os.environ and os.environ['MODULES_USE_COMPAT_VERSION'] == '1':
[26] Fix | Delete
os.environ['MODULES_CMD'] = '/usr/share/Modules/libexec/modulecmd-compat'
[27] Fix | Delete
# set module command in accordance with active version
[28] Fix | Delete
def module(command, *arguments):
[29] Fix | Delete
exec(subprocess.Popen(['/usr/share/Modules/libexec/modulecmd-compat', 'python', command] + list(arguments), stdout=subprocess.PIPE).communicate()[0])
[30] Fix | Delete
# return value as done on new main version
[31] Fix | Delete
return True
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function