Lines Matching refs:path
18 This module contains code for loading image metadata from a file path on disk.
20 The directory path is structured:
53 filePath: The path of the file on disk.
54 outFilePath: The path of the output file on disk.
83 Create a new image definition, based on a structured file path.
86 filePath (str): The path of the image on disk.
91 self.filePath = os.path.abspath(filePath)
92 if not os.path.exists(self.filePath):
95 # Decode the path
96 scriptDir = os.path.dirname(__file__)
97 rootInDir = os.path.join(scriptDir, "..", "Images")
98 partialPath = os.path.relpath(self.filePath, rootInDir)
101 raise ImageException("Image path not path triplet (%s)" % parts)
109 # Output file path (store base without extension)
110 rootOutDir = os.path.join(scriptDir, "..", "..", "TestOutput")
111 outFilePath = os.path.join(rootOutDir, partialPath)
112 outFilePath = os.path.abspath(outFilePath)
113 outFilePath = os.path.splitext(outFilePath)[0]
124 ImageException: The image file path is badly structured.
127 rootName = os.path.splitext(fileName)[0]
230 filePath (str): The path to the image on disk.