- Update pymod tests for the new Python script variable.

This commit is contained in:
George Thessalonikefs 2023-10-16 16:32:09 +02:00
parent e4510c76e5
commit 4b627bd29e
2 changed files with 2 additions and 7 deletions

View File

@ -37,12 +37,7 @@
import os
def init(id, cfg):
scripts=[]
s = cfg.python_script
while s != None:
scripts.append(s.str)
s = s.next
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, scripts))
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, mod_env['script']))
return True
def deinit(id):

View File

@ -37,7 +37,7 @@
import os
def init(id, cfg):
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, cfg.python_script))
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, mod_env['script']))
return True
def deinit(id):