Exemple #1
0
import hou
import sinastorage
from haoc import HaocUtils,DBUtils,SCloudUtils
from haoc import HaocEventFilter

hou.putenv("HAOCROOTPATH", HaocUtils.get_root_path())

config = HaocUtils.Config.read()
if not (config.ak=='' or config.sk==''):
	sinastorage.setDefaultAppInfo(config.ak,config.sk)
	HaocEventFilter.HaocEventF.installHaocEventF()
	if DBUtils.is_launch_with_sync():
		SCloudUtils.sync_data(False)
Exemple #2
0
 def on_sync():
     if SCloudUtils.is_any_cloud_operation_running():
         print "Please wait for current cloud operation finish"
         return
     SCloudUtils.sync_data()