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
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