Script execution
This commit is contained in:
@@ -17,7 +17,7 @@ class ImageFilename(DeviceBase, Readable, Readable.StringType):
|
||||
def read(self):
|
||||
return self.getParent().get_image_filename()
|
||||
|
||||
class Pixel(DeviceBase, Readable, Readable.IntType):
|
||||
class Pixel(DeviceBase, Readable, Readable.IntegerType):
|
||||
def __init__(self, name, prefix):
|
||||
DeviceBase.__init__(self, name)
|
||||
self.prefix = prefix
|
||||
@@ -100,6 +100,9 @@ class Pixel(DeviceBase, Readable, Readable.IntType):
|
||||
return status in ["Ready0", "Ready1"]
|
||||
|
||||
def set_path(self, patha, pathb=""):
|
||||
if pathb!="":
|
||||
if not patha.endswith("/"):
|
||||
patha=patha + "/"
|
||||
caput(self.prefix + ":PATHa", patha)
|
||||
caput(self.prefix + ":PATHb", pathb)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user