コード例 #1
0
ファイル: gio_provider.py プロジェクト: pombredanne/Sunflower
    def get_monitor(self, path):
        """Get file system monitor for specified path"""
        try:
            result = GioMonitor(self, path)
        except:
            result = Provider.get_monitor(self, path)

        return result
コード例 #2
0
ファイル: gio_provider.py プロジェクト: SmokeyCosmy/Sunflower
	def get_monitor(self, path):
		"""Get file system monitor for specified path"""
		try:
			result = GioMonitor(self, path)
		except:
			result = Provider.get_monitor(self, path)

		return result
コード例 #3
0
    def get_monitor(self, path):
        """Get file system monitor for specified path"""
        try:
            result = LocalMonitor(self, path)

        except MonitorError as error:
            result = Provider.get_monitor(self, path)

        return result
コード例 #4
0
	def get_monitor(self, path):
		"""Get file system monitor for specified path"""
		try:
			result = LocalMonitor(self, path)

		except MonitorError as error:
			result = Provider.get_monitor(self, path)

		return result