コード例 #1
0
ファイル: cli.py プロジェクト: hflynn/openmicroscopy
 def __call__(self, string):
     if not os.path.exists(string):
         raise ValueError("File does not exist: %s" % string)
     return FileType.__call__(self, string)
コード例 #2
0
ファイル: cli.py プロジェクト: hflynn/openmicroscopy
 def __call__(self, string):
     if string != "-" and os.path.exists(string):
         raise ValueError("File exists: %s" % string)
     return FileType.__call__(self, string)