Module modeling :: Class PathExtractor
[hide private]

Class PathExtractor

source code

Helper class that is used to extract the executable path of service from full command line. It's applicable to Windows command lines only, since we are relying on specific folder separator and are searching the first occurrence of '.exe' or '.bat' extension. Class is stateless and can be used in multiple extracts. When extraction fails exception is raised.

Instance Methods [hide private]
 
__init__(self) source code
 
__useFirstQuotedString(self, input) source code
 
__applyReplacements(self, input) source code
 
__mainExtractor(self, input) source code
 
__extractWithAnchor(self, input, anchor) source code
 
extract(self, input) source code