From b1236c4295ba85443b1f79b36fec8a09415190f7 Mon Sep 17 00:00:00 2001 From: agreppi Date: Thu, 1 Jun 2023 10:07:23 -0300 Subject: [PATCH] Update p3270.py The screensDir option was not working, because that argument was missing in the initialization of the class. Added that argument in the initialization of the P3270Client class --- p3270/p3270.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/p3270/p3270.py b/p3270/p3270.py index 473a8c9..c0c6668 100644 --- a/p3270/p3270.py +++ b/p3270/p3270.py @@ -90,7 +90,8 @@ class P3270Client(): numOfInstances = 0 def __init__(self, luName=None, hostName='localhost', hostPort='23', modelName='3279-2', configFile=None, - verifyCert='yes', enableTLS='no', codePage='cp037', path=None, timeoutInSec=20): + verifyCert='yes', enableTLS='no', codePage='cp037', path=None, timeoutInSec=20, + screensDir=None): self.luName = luName self.hostName = hostName self.hostPort = hostPort @@ -100,8 +101,9 @@ def __init__(self, luName=None, hostName='localhost', hostPort='23', modelName=' self.enableTLS = enableTLS self.timeout = timeoutInSec self.path = path - self.conf = Config(cfgFile=self.configFile, hostName=self.hostName, - hostPort=self.hostPort, luName=self.luName, modelName=self.modelName, codePage=codePage) + self.screensDir = screensDir + self.conf = Config(cfgFile=self.configFile, hostName=self.hostName, screensDir = self.screensDir, + hostPort=self.hostPort, luName=self.luName, modelName=self.modelName, codePage=codePage) if self.conf.isValid(): self.subpro = None self.makeArgs()