Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions p3270/p3270.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down