本文整理汇总了Python中Resources.pushSNX方法的典型用法代码示例。如果您正苦于以下问题:Python Resources.pushSNX方法的具体用法?Python Resources.pushSNX怎么用?Python Resources.pushSNX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Resources
的用法示例。
在下文中一共展示了Resources.pushSNX方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: pushZND
# 需要导入模块: import Resources [as 别名]
# 或者: from Resources import pushSNX [as 别名]
def pushZND(self,prog_id):
# define where and what
file_descriptor = os.path.join(self.get_local_solutions_dir(),'*.znd*');
# query for file listing
file_list = glob.glob(file_descriptor);
# push each snx file
for file in file_list:
print "pushing znd file: ",file
Resources.pushSNX(self.get_solution_bucket(prog_id), file);
示例2: pushH
# 需要导入模块: import Resources [as 别名]
# 或者: from Resources import pushSNX [as 别名]
def pushH(self,prog_id):
# define where and what
h_file_descriptor = os.path.join(self.get_local_solutions_dir(),'h*.[0-9][0-9][0-9][0-9][0-9]*');
# query for file listing
h_file_list = glob.glob(h_file_descriptor);
# push each snx file
for h_file in h_file_list:
print "pushing hfile: ",h_file
Resources.pushSNX(self.get_solution_bucket(prog_id), h_file);
示例3: pushSp3Local
# 需要导入模块: import Resources [as 别名]
# 或者: from Resources import pushSNX [as 别名]
def pushSp3Local(self,prog_id):
#put a copy of the sp3 file in the solution directory
# define where and what
file_descriptor = os.path.join(self.get_local_solutions_dir(),'*.sp3*');
# query for file listing
file_list = glob.glob(file_descriptor);
# push each snx file
for file in file_list:
print "pushing sp3 file: ",file
Resources.pushSNX(self.get_solution_bucket(prog_id), file);