-
大小: 35.78MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-07-05
- 语言: 其他
- 标签: CacheServer Unity
资源简介
CacheServer-5.6.2p4,资源平台切换之缓存服务器,用于资源平台切换之缓存服务器的部署与使用
代码片段和文件信息
#!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
__doc__ = “““
gyptest.py -- test runner for GYP tests.
“““
import os
import optparse
import subprocess
import sys
class CommandRunner(object):
“““
Executor class for commands including “commands“ implemented by
Python functions.
“““
verbose = True
active = True
def __init__(self dictionary={}):
self.subst_dictionary(dictionary)
def subst_dictionary(self dictionary):
self._subst_dictionary = dictionary
def subst(self string dictionary=None):
“““
Substitutes (via the format operator) the values in the specified
dictionary into the specified command.
The command can be an (action string) tuple. In all cases we
perform substitution on strings and don‘t worry if something isn‘t
a string. (It‘s probably a Python function to be executed.)
“““
if dictionary is None:
dictionary = self._subst_dictionary
if dictionary:
try:
string = string % dictionary
except TypeError:
pass
return string
def display(self command stdout=None stderr=None):
if not self.verbose:
return
if type(command) == type(()):
func = command[0]
args = command[1:]
s = ‘%s(%s)‘ % (func.__name__ ‘ ‘.join(map(repr args)))
if type(command) == type([]):
# TODO: quote arguments containing spaces
# TODO: handle meta characters?
s = ‘ ‘.join(command)
else:
s = self.subst(command)
if not s.endswith(‘\n‘):
s += ‘\n‘
sys.stdout.write(s)
sys.stdout.flush()
def execute(self command stdout=None stderr=None):
“““
Executes a single command.
“““
if not self.active:
return 0
if type(command) == type(‘‘):
command = self.subst(command)
cmdargs = shlex.split(command)
if cmdargs[0] == ‘cd‘:
command = (os.chdir) + tuple(cmdargs[1:])
if type(command) == type(()):
func = command[0]
args = command[1:]
return func(*args)
else:
if stdout is sys.stdout:
# Same as passing sys.stdout except python2.4 doesn‘t fail on it.
subout = None
else:
# Open pipe for anything else so Popen works on python2.4.
subout = subprocess.PIPE
if stderr is sys.stderr:
# Same as passing sys.stderr except python2.4 doesn‘t fail on it.
suberr = None
elif stderr is None:
# Merge with stdout if stderr isn‘t specified.
suberr = subprocess.STDOUT
else:
# Open pipe for anything else so Popen works on python2.4.
suberr = subprocess.PIPE
p = subprocess.Popen(command
shell=(sys.platform == ‘win32‘)
stdout=subout
stderr=suberr)
p.wait()
if stdout is None:
self.stdout = p
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-07-18 21:30 CacheServer\
文件 564 2017-07-18 07:39 CacheServer\RunLinux.sh
文件 15900 2017-07-18 07:39 CacheServer\LegacyCacheServer.js
文件 84 2017-07-18 07:39 CacheServer\RunWin.cmd
文件 27191 2017-07-18 21:27 CacheServer\CacheServer.js
文件 14286 2017-07-18 21:30 CacheServer\unity3d-cacheserver_5.6.2p4_all.deb
文件 4899 2017-07-17 08:16 CacheServer\main.js
目录 0 2017-07-18 21:29 CacheServer\nodejs\
文件 60789 2017-07-18 21:29 CacheServer\nodejs\LICENSE
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\.bin\
文件 184 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\.bin\npm.cmd
文件 276 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\.bin\npm
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\inflight\
文件 748 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\inflight\LICENSE
文件 1787 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\inflight\test.js
文件 1986 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\inflight\package.json
文件 991 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\inflight\README.md
文件 897 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\inflight\inflight.js
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\once\
文件 765 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\once\LICENSE
文件 1928 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\once\package.json
文件 1012 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\once\README.md
文件 417 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\once\once.js
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\once\test\
文件 452 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\once\test\once.js
目录 0 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\path-array\
文件 3037 2017-07-18 21:29 CacheServer\nodejs\win64\node_modules\npm\node_modules\path-array\index.js
............此处省略11049个文件信息
相关资源
- Unity 室内漫游房地产
- Unity3D网络游戏实战
- unity3d联网斗地主服务端+客户端
- Unity游戏案例开发大全
- Obi Fluidv4.0.1+Obi Cloth 4.0.1
- 3D Infinite Runner Toolkit
- PostProcessing unity2018
- unity RTS kit即时战略模版
- unity 3D虚拟漫游
- 坦克大战,unity
- Unity滚动条ScrollView自动居中、缩放、
- unity实现—AR相机录屏拍照 UI滑动 拖拽
- Toony Colors Pro 2 v2.3.55
- Unity GL 画板 优化版已做自适应
- DirectX 11 Low Poly Shader - DX11低多边形着
- (Unity)EasyTouch3.16(触摸插件
- Unity滑动切换图片
- untiy3d 简单td防守+射击游戏
- unity2017-winANDmacCrack.zip
- Unity3D树木、地皮贴图
- 用Unity3d做一个魔方
- Final IK 1.9 当前时间最新版本
- Unity 2018 Shaders and Effects Cookbook 3rd Ed
- unity动物城源码.zip
- Unity_实现残影
- NGUI: Next-Gen UI v3.12.0b 2018年5月
- 关于Unity3D脚本的800个教程合集完整版
- PuppetMaster0.9
- mega fiers 3.49
- unity全民飞机大战源码.zip
评论
共有 条评论