代码拉取完成,页面将自动刷新
# @file util.py
# @desc 置于 Preferences -> Browser Packages 弹出的目录下
import os, sublime
def runCommand( cd, commands ):
'解析命令行'
if( len( commands ) > 0 ):
if( cd != "" ):
os.chdir( cd )
commands.reverse()
commandStr = " & ".join( commands )
print( "执行命令", commandStr )
os.system( commandStr )
else:
sublime.message_dialog( "命令不能为空" )
def getFisProjectPath( paths ):
'解析路径到 fis 工程根目录'
while( len (paths) > 0 and not os.path.exists( "\\".join( paths ) + "\\widget" ) ):
curPath = paths.pop()
# sublime.message_dialog( str( len (paths)) )
if( len (paths) == 0 ):
return ""
return "\\".join(paths)
def getFileCurrentPath( filePath ):
path=filePath.split("\\")
current_driver=path[0]
path.pop()
return "\\".join(path)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。