コード例 #1
0
 def on_post_save(self, view):
     # this will reload submodules if they are saved with sublime text
     for name, module in self.modules.modules.items():
         if os.name == 'posix' and (os.stat(
                 module.__file__).st_ino == os.stat(view.file_name(
                 )).st_ino) or module.__file__ == view.file_name():
             self.modules.reload(module)
             Linter.reload(name)
             break
コード例 #2
0
ファイル: sublimelint.py プロジェクト: Ephemerall/sublimelint
	def on_post_save(self, view):
		# this will reload submodules if they are saved with sublime text
		for name, module in self.modules.modules.items():
			if os.name == 'posix' and (
				os.stat(module.__file__).st_ino == os.stat(view.file_name()).st_ino
			) or module.__file__ == view.file_name():
				self.modules.reload(module)
				Linter.reload(name)
				break