Ejemplo n.º 1
0
 def process_IN_CLOSE_WRITE(self, event):
     evPath = os.path.relpath(event.pathname, Project.getProjectFolder())
     asset = Project.processAsset(evPath, saveProject=True)
     if asset != None and Project.isUserAsset(evPath):
         WSServer.send('AssetWatch', dict(event="update", asset=asset))
     pass
Ejemplo n.º 2
0
 def process_IN_CLOSE_WRITE(self, event):
     evPath = os.path.relpath(event.pathname, Project.getProjectFolder())
     asset = Project.processAsset(evPath, saveProject=True)
     if asset != None and Project.isUserAsset(evPath):
         WSServer.send('AssetWatch', dict(event="update", asset=asset))
     pass
Ejemplo n.º 3
0
 def process_IN_DELETE(self, event):
     evPath = os.path.relpath(event.pathname, Project.getProjectFolder())
     Project.removeAsset(evPath, saveProject=True)
     if Utils.IsTrackableAsset(evPath) and Project.isUserAsset(evPath):
         WSServer.send('AssetWatch', dict(event="delete", path=evPath))
     pass
Ejemplo n.º 4
0
 def process_IN_DELETE(self, event):
     evPath = os.path.relpath(event.pathname, Project.getProjectFolder())
     Project.removeAsset(evPath, saveProject=True)
     if Utils.IsTrackableAsset(evPath) and Project.isUserAsset(evPath):
         WSServer.send('AssetWatch', dict(event="delete", path=evPath))
     pass