100+ results results for 'glob.glob lang:python' (165 ms)
124 if baseglob.is_dir(): 125 matches = baseglob.glob("**/*") 126 file_paths = [file for file in matches if file.is_file()]__init__.py https://github.com/bvtrach/menumaker-awesome.git | Python | 338 lines
18 path = super(DebianSet, self).adopt(path) 19 if len(glob.glob(os.path.join(path, "*"))) : 20 return path # Directory should not be empty 46 for d in dirs : 47 for f in glob.glob(os.path.join(d, "*")) : 48 if verbose > 1 : msg("\nparsing " + f)__init__.py https://github.com/grunskis/mopidy.git | Python | 250 lines
94 95 for m3u in glob.glob(os.path.join(self._folder, '*.m3u')): 96 name = os.path.basename(m3u)[:len('.m3u')]vasp.py https://github.com/qsnake/ase.git | Python | 422 lines
59 vaspdir = op.dirname(posfname) 60 fs = glob.glob(vaspdir + '*POTCAR*') 61 for f in fs: 62 fnames.append(f) 63 fs = glob.glob(vaspdir + '*OUTCAR*') 64 for f in fs:mboxutils.py https://github.com/RoDaniel/featurehouse.git | Python | 371 lines
46 47 self.names = glob.glob(os.path.join(dirname, "*")) 48imphook.py https://gitlab.com/132nd-etcher/pyinstaller | Python | 311 lines
93 # For each hook in the passed directory... 94 hook_files = glob.glob(os.path.join(hooks_dir, 'hook-*.py')) 95 for hook_file in hook_files:octopress.py https://bitbucket.org/gyk001/st2cfg.git | Python | 189 lines
177 178 files = glob.glob(self.octopress_path + "/source/*/index." + self.page_extension); 179 files.reverse()mapper_landsat.py https://gitlab.com/jobel-open-source/nansat-lite | Python | 160 lines
68 coreNameMask = coreName+'*[tT][iI][fF]' 69 tifNames = sorted(glob.glob(os.path.join(path, coreNameMask))) 70 for tifName in tifNames: 78 # get mtl file 79 mtlFiles = glob.glob(coreName+'*[mM][tT][lL].[tT][xX][tT]') 80 if len(mtlFiles) > 0:encode.py https://code.google.com/p/djvubind/ | Python | 321 lines
145 # Clean up 146 for tempfile in glob.glob('temp_*'): 147 os.remove(tempfile)develop.py https://gitlab.com/suyesh/Djangotest | Python | 169 lines
53 # pick up setup-dir .egg files only: no .egg-info 54 self.package_index.scan(glob.glob('*.egg')) 55ocxtest.py https://bitbucket.org/beqa/nvdadependencyvirtualenvironment.git | Python | 186 lines
92 return None 93 fnames = glob.glob(os.path.join(win32api.GetWindowsDirectory(), "*.avi")) 94 if not fnames:base.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 164 lines
129 for pattern in copy_filenames: 130 for match in glob.glob(os.path.join(files_path, pattern)): 131 shutil.copyfile(match, os.path.join(dest, os.path.basename(match)))backup.py https://gitlab.com/oytunistrator/mailinabox | Python | 176 lines
88 # because they are costly to synchronize off-site. 89 full_sz = sum(os.path.getsize(f) for f in glob.glob(backup_duplicity_dir + '/*-full.*')) 90 inc_sz = sum(os.path.getsize(f) for f in glob.glob(backup_duplicity_dir + '/*-inc.*'))gconfsettings.py https://bitbucket.org/cfield/ubuntu-tweak.git | Python | 159 lines
36 try: 37 for override in glob.glob('/usr/share/gconf/defaults/*'): 38 for line in open(override):whole_surface_avgs.py https://gitlab.com/Cadair/driver-widths-paper | Python | 82 lines
39def glob_files(tube_r, search): 40 files = glob.glob(os.path.join(cfg.data_dir,tube_r,search)) 41 files.sort()sil-opt-verify-all-modules.py https://gitlab.com/yenny.prathivi/swift | Python | 180 lines
85 print(modules_dir) 86 modules = glob.glob(os.path.join(modules_dir, '*.swiftmodule')) 87 for module_file_name in modules: 166 xcode_path, 'Contents', 'Developer', 'Toolchains') 167 toolchains = glob.glob(os.path.join(toolchains_dir, '*.xctoolchain')) 168work-around-vs-dependency-tracking-bugs.py https://bitbucket.org/zenoalbisser/webkit.git | Python | 66 lines
47def mtime_of_newest_file_matching_glob(glob_pattern): 48 files = glob.glob(glob_pattern) 49 assert len(files), "Couldn't find any files matching glob %s" % glob_patternmodels.py https://bitbucket.org/rukku/webandgis.git | Python | 76 lines
61 os.chdir(zip_out) 62 shapefiles = glob.glob('*.shp') 63filebased.py https://gitlab.com/benji-bou/urotechchallenge-Serenity | Python | 153 lines
151 filelist = [os.path.join(self._dir, fname) for fname 152 in glob.glob1(self._dir, '*%s' % self.cache_suffix)] 153 return filelisthandlers.py https://github.com/arokem/ipython.git | Python | 86 lines
31 ) 32 for logo_file in glob.glob(pjoin(resource_dir, 'logo-*')): 33 fname = os.path.basename(logo_file)manager.py https://bitbucket.org/deets/virtualenvmanager | Python | 429 lines
168 169 left = glob.glob(os.path.join(self.base_path, vems[0], "lib", "python*", "site-packages"))[0] 170 right = glob.glob(os.path.join(self.base_path, vems[1], "lib", "python*", "site-packages"))[0] 331 if os.path.exists(bp) and os.path.isdir(bp): 332 for fname in glob.glob(os.path.join(bp, "*")): 333 name = os.path.basename(fname) 393 bindir = 'Scripts' 394 exe = glob.glob(os.path.join(self.active_prefix, bindir, "python*"))[0] 395 os.execv(exe, [exe] + sys.argv[1:])runner.py https://github.com/honr/sumo.git | Python | 183 lines
67 self.root.title("Traffic Light Game") 68 for cfg in glob.glob(os.path.join(base, "*.sumo.cfg")): 69 text = category = os.path.basename(cfg)[:-9]Chart.py git://pkgs.fedoraproject.org/prewikka | Python | 386 lines
132 directory = pathname + "_*" 133 files = glob.glob(directory) 134histogram_analysis.py https://bitbucket.org/wschurman/colorapp-analysis.git | Python | 97 lines
18 19 for infile in glob.glob("*.jpg"): 20 yield (infile, Image.open(infile))mktraj.py https://gitlab.com/exaalt/parsplice | Python | 106 lines
62 c=cl[itraj][j] 63 filei=glob.glob(run+"/"+"state-%i.out" % c) 64 #print filei 94 95 filei=glob.glob(run+"/"+"state-%i.out" % c) 96 #print fileicc_snappy.py https://gitlab.com/bertjwregeer/cloud-init | Python | 321 lines
104 ops = [] 105 for snapfile in sorted(glob.glob(os.path.sep.join([fspath, '*.snap']))): 106 (name, shortname, fname_noext) = parse_filename(snapfile)test_unicode_file.py https://IronPython.svn.codeplex.com/svn | Python | 209 lines
61 self.failUnless( 62 os.path.abspath(filename)==os.path.abspath(glob.glob(filename)[0])) 63 # basename should appear in listdir.coverage.py https://gitlab.com/jslee1/WordPress-iOS | Python | 326 lines
36 37 for file in glob.glob(sourcePattern): 38 shutil.copy(file, destination) 148 149 for file in glob.glob(sourceFilesPattern): 150 fileWithPath = "../../" + file__init__.py https://github.com/oppian/oppian.git | Python | 86 lines
53 # currently only get PNG and JPEG files 54 filenames = glob.glob("*.png") + glob.glob("*.jpg") 55 for filename in filenames:SerializationTest.py https://gitlab.com/sudarsunkannan/mapkeeper | Python | 357 lines
28sys.path.insert(0, options.genpydir) 29sys.path.insert(0, glob.glob('../../lib/py/build/lib.*')[0]) 30avatar-test.py https://github.com/heca/rextest2.git | Python | 167 lines
141 print "moving pcap files..." 142 pcap = glob.glob(wiresTempDir + '/captured*.*.pcap') 143 for i in range(0,len(pcap)):ParseGDSFiles.py https://bitbucket.org/Apoc/biogps_core | Python | 184 lines
24def parse_GDS_files(): 25 soft_files = glob.glob('/storage/sulab/GEO_Data/GDS/test_copies/*.soft') 26 out_path = '/storage/sulab/GEO_Data/GDS/test_copies/csv/'createarrayinfo.py https://github.com/gatoatigrado/pyplusplusclone.git | Python | 169 lines
165 166headers = glob.glob(headernames) 167print >>sys.stderr, "%d header files found"%len(headers)mine.py https://gitlab.com/lwd17/enhanced_examplar_ae | Python | 240 lines
28 print(f"Finding in {directory}/{prefix}.{lang}*") 29 files = glob.glob(f"{directory}/{prefix}.{lang}*") 30 emb_files = []singlefile.py https://github.com/cuckoobox/cuckoo.git | Python | 199 lines
124 css_includes = [] 125 for filepath in glob.glob("%s/static/css/*.css" % self.path_base): 126 css_includes.append(open(filepath, "rb").read().decode("utf8")) 132 # Note: jquery-2.2.4.min.js must be the first file. 133 filepaths = sorted(glob.glob("%s/static/js/*.js" % self.path_base)) 134 for filepath in filepaths: 181 img_includes = [] 182 for imgpath in glob.glob("%s/static/img/*.png" % self.path_base): 183 name, ext = os.path.splitext(os.path.basename(imgpath))loaddata.py https://bitbucket.org/smichal88/tag-highlight-git-repo-mirror.git | Python | 143 lines
137def GlobData(matcher): 138 files = glob.glob(os.path.join(data_directory, matcher)) 139 return [os.path.relpath(i,data_directory) for i in files]testbase.py http://perseph.googlecode.com/svn/trunk/ | Python | 316 lines
169 templateDir = os.path.abspath(os.path.join(testDir, '..', '..', '..', 'src', 'org', 'antlr', 'codegen', 'templates', 'Python')) 170 templates = glob.glob(os.path.join(templateDir, '*.stg')) 171check-symbols-glibc.py https://gitlab.com/generic-library/bionic | Python | 202 lines
41 ignored_symbols = set() 42 files = glob.glob('%s/ndk/build/tools/unwanted-symbols/%s/*' % 43 (os.getenv('ANDROID_BUILD_TOP'), arch))xbb_blast.py https://github.com/frankkl/biopython.git | Python | 161 lines
28 try: 29 pin.extend(glob.glob(os.environ['BLASTDB'] + '/*.pin')) 30 except: 31 pass 32 pin.extend(glob.glob('*.pin')) 33 34 try: 35 nin.extend(glob.glob(os.environ['BLASTDB'] + '/*.nin')) 36 except: 37 pass 38 nin.extend(glob.glob('*.nin')) 39util.py https://gitlab.com/jonnialva90/iridium-browser | Python | 166 lines
152 output_name = '%s_%03d' % (name, index) 153 if not glob.glob(output_name + '.*'): 154 breakanalyze.py https://github.com/ravidontharaju/zookeeper.git | Python | 201 lines
32 lats = collections.defaultdict(list) 33 for fname in glob.glob('sync-*-count-*-npar-*-rep-*.out'): 34 m = re.match(r'sync-(\d+)-count-(\d+)-npar-(\d+)-rep-(\d+)\.out', fname)photonpublish.py https://gitlab.com/unofficial-mirrors/photon | Python | 297 lines
141 results = [] 142 filesToPush = glob.glob(filePath) 143 for fileToPush in filesToPush:_cython_signature_generator.py https://github.com/dpritsos/WEGA.git | Python | 129 lines
53 directory = directory[:-1] 54 files = glob.glob(directory + '/*.f*') 55 if exclusions is None:summary_writer_test.py https://gitlab.com/wilane/tensorflow | Python | 151 lines
24 def _EventsReader(self, test_dir): 25 event_paths = glob.glob(os.path.join(test_dir, "event*")) 26 # If the tests runs multiple time in the same directory we can havesetup.py https://github.com/andrewrk/MonsterMechanics.git | Python | 273 lines
131 132data.extend(glob.glob('*.txt')) 133#data.append('MANIFEST.in') 136add_files(src,os.walk('MonsterMechanics')) 137src.extend(glob.glob('*.py')) 138sounddecompress.py https://github.com/Deledrius/libhsplasma.git | Python | 298 lines
79 print("Loading Age files...") 80 numAges = len(glob.glob(os.path.join(datadir, "*.age"))) 81 numAgesRead = 0git.py https://github.com/mitnk/dotfiles.git | Python | 228 lines
63 p = os.path.join(output, 'git-*') 64 cmd_list = glob.glob(p) 65 cmd_list = [re.sub(r'.*/git-', '', x) for x in cmd_list]summarize.py https://github.com/plaes/numpy.git | Python | 171 lines
97def check_numpy(): 98 documented = get_documented(glob.glob(SOURCE_DIR + '/*.rst')) 99 undocumented = {}xmppBot.py https://github.com/searthrowl/Community-Zenpacks.git | Python | 211 lines
98 99 plugins = [pluginFile.split('/')[-1].split('.py')[0] for pluginFile in glob.glob( os.path.join(pluginPath, '*.py') )] 100create-application.py https://github.com/vuuvv/vshop1.git | Python | 353 lines
111 script_dir = os.path.join(root_dir, "source", "script") 112 script_files = glob.glob(os.path.join(script_dir, "custom.*js")) 113 if script_files:tasks.py https://github.com/theinterned/batucada.git | Python | 103 lines
100 # remove frame image files. 101 files = glob.glob(self.frame_prefix + '*') 102 for f in files:igor.py https://bitbucket.org/jtolds/exit-status-with-package-main-invocation | Python | 401 lines
59 pattern = os.path.join("coverage", pattern) 60 for filename in glob.glob(pattern): 61 try: 247 distutils.core.run_setup("setup.py", ["--quiet", "bdist_egg"]) 248 egg = glob.glob("dist/*.egg")[0] 249 distutils.core.run_setup(check-git-repo-availability.py https://gitlab.com/onitake/fdroiddata | Python | 74 lines
11else: 12 files = sorted(glob.glob('metadata/*.yml')) 13ROC.py https://bitbucket.org/douglase/pyklip.git | Python | 279 lines
29 It should be the complete path unless inputDir is used in initialize(). 30 It can include wild characters. The files will be reduced as given by glob.glob(). 31 filename_detec: Filename of the .csv file with the list of blobs in the image as produced by the classget_erros.py https://gitlab.com/abushoeb/ghadoop-master | Python | 313 lines
241 dirname = a 242 files.extend(glob.glob(os.path.join(dirname,"*fore.txt"))) 243 elif o == '-f': 298 print "</table>" 299 files = glob.glob(dirname+"/../*.png") 300 files.sort()run.py https://bitbucket.org/okkhoy/rlpy.git | Python | 259 lines
102 l = sorted([int(re.findall("([0-9]*)-results.json", p)[0]) 103 for p in glob.glob(os.path.join(path, "*-results.json"))]) 104 return lmysql_bulk_insert.py https://bitbucket.org/nandinisa/projects.git | Python | 193 lines
113 cursor = connection.cursor() 114 csvFiles = glob.glob(os.path.join(dirPath, '*.csv')) 115example.py https://gitlab.com/jonnialva90/iridium-browser | Python | 121 lines
116 ''' 117 return glob.glob(glob_path) 118queue.py https://github.com/noplay/scrapy.git | Python | 177 lines
123 def _cleanup(self): 124 for x in glob.glob(os.path.join(self.path, 'q*')): 125 os.remove(x)TitrationCode_15.py https://bitbucket.org/doane-divas/divas.git | Python | 232 lines
39 #places all of the images into a list calle 'filenames' 40 filenames = [img for img in glob.glob(path_to_file)] 41set_configs.py https://gitlab.com/unofficial-mirrors/openstack-kolla | Python | 422 lines
132 133 sources = glob.glob(self.source) 134 206 bad_state_files = [] 207 sources = glob.glob(self.source) 208 362 363 for dest in glob.glob(path): 364 set_perms(dest, uid, gid, perm)setup.py https://github.com/ericliang/matplotlib.git | Python | 296 lines
118 # TODO: exclude these when making release? 119 baseline_images = glob.glob(os.path.join('lib','matplotlib','tests', 120 'baseline_images','*','*'))pdbfile.py https://bitbucket.org/siddharthpaliwal/lammps.git | Python | 299 lines
104 for file in list: 105 if '*' in file: flist += glob.glob(file) 106 else: flist.append(file)scan_server_dlls.py https://github.com/akesling/chromium.git | Python | 141 lines
106 107 for file in glob.glob(os.path.join(output_dir, option)): 108 if option.startswith(SERVERS_DIR):xtr_cls_fic_lst.py https://gitlab.com/liuxin429go/toolbox | Python | 143 lines
136 infos = {} 137 for f in glob.glob('*.tree.xml'): 138 readInfos(f, infos)generate_overlays.py git://github.com/alexanderhiam/PyBBIO.git | Python | 87 lines
42 print "Compiling all overlays..." 43 overlays = glob.glob('%s/*.dts' % dts_path) 44 for overlay in overlays:filenbmanager.py https://github.com/juliantaylor/ipython.git | Python | 346 lines
78 """List all notebook names in the notebook dir.""" 79 names = glob.glob(os.path.join(self.notebook_dir, 80 '*' + self.filename_ext))path.py https://gitlab.com/oryx/openembedded-core | Python | 295 lines
104 if os.path.isdir(src): 105 if len(glob.glob('%s/.??*' % src)) > 0: 106 source = './.??* ' 121 wildcards in them (as opposed to passing an actual wildcarded path) - 122 since we use glob.glob() to expand the path. Filenames containing 123 square brackets are particularly problematic since the they may not 125 """ 126 for name in glob.glob(path): 127 try: 280 candidate = os.path.join(element, pathname) 281 globbed = glob.glob(candidate) 282 if globbed:inotifyexec.py https://bitbucket.org/mikebentley15/configurations.git | Python | 130 lines
35 36 files = glob.glob('*.cpp') 37 for file, types in inotifywait(['--monitor'] + files):copy_cdb_to_output.py https://github.com/chromium/chromium.git | Python | 127 lines
86 redist_dir = os.path.join(win_sdk_dir, 'Redist') 87 version_dirs = glob.glob(os.path.join(redist_dir, '10.*')) 88 if len(version_dirs) > 0: 109 # SDK. 110 for file in glob.glob(os.path.join(src_dir, 'api-ms-win*.dll')): 111 _CopyImpl(os.path.split(file)[1], output_dir, src_dir) 112 _CopyImpl('ucrtbase.dll', output_dir, src_crt_dir) 113 for dll_path in glob.glob(os.path.join(src_crt_dir, 'api-ms-win-*.dll')): 114 _CopyImpl(os.path.split(dll_path)[1], output_dir, src_crt_dir)test.py https://bitbucket.org/pombredanne/bloom-filter-indexer.git | Python | 185 lines
54 def tearDown(self): 55 for tmpfile in glob.glob('/tmp/fake.csv.*.bfindex'): 56 os.unlink(tmpfile)sb_mboxtrain.py https://github.com/RoDaniel/featurehouse.git | Python | 272 lines
169 trained = 0 170 for fn in glob.glob(os.path.join(path, "[0-9]*")): 171 counter += 1test_nbextensions.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 272 lines
127 def test_install_nbextension(self): 128 install_nbextension(glob.glob(pjoin(self.src, '*'))) 129 for file in self.files:test_dirdbm.py https://github.com/RoDaniel/featurehouse.git | Python | 106 lines
97 assert dbm["key2"] == "correct" 98 assert not glob.glob(os.path.join(self.path, "*.new")) 99 assert not glob.glob(os.path.join(self.path, "*.rpl"))convert_hhvm_collection_base.py git://github.com/facebook/hiphop-php.git | Python | 193 lines
29 if success: 30 files = (glob.glob(tmpOutput + '/*.php') + 31 glob.glob(tmpOutput + '/**/*.php'))core.py https://github.com/temoon/ergo.git | Python | 309 lines
102 # Merge command settings 103 for filename in filter(os.path.isfile, glob.glob(os.path.join(config["general"]["include"], "*.conf"))): 104 config = self.merge(config, self.read(filename))game.py https://gitlab.com/leoDumontier/OnVerraPlusTard | Python | 128 lines
33 def __init__(self, name=None, initial=None, current=None, static=None): 34 for path in glob.glob("mud/games/projet/*new*.yml"): 35 os.remove(path) 58 l = [] 59 for filename in glob.glob(pattern): 60 l.extend(self.yaml_load_all(filename)) 76 d = {} 77 for filename in glob.glob(pattern): 78 d.update(self.yaml_load(filename)) 113 def remove_glob(self, filename): 114 for path in glob.glob(filename): 115 self.remove(path)autotest.py https://github.com/arktools/ardupilotone.git | Python | 315 lines
82 import glob 83 mavlog = glob.glob(util.reltopdir("../buildlogs/*.mavlog")) 84 for m in mavlog: 224 import glob 225 for f in glob.glob(util.reltopdir('../buildlogs/%s' % pattern)): 226 self.addfile(name, os.path.basename(f)) 234 t = mavtemplate.MAVTemplate() 235 for h in glob.glob(util.reltopdir('Tools/autotest/web/*.html')): 236 html = util.loadfile(h) 239 f.close() 240 for f in glob.glob(util.reltopdir('Tools/autotest/web/*.png')): 241 shutil.copy(f, util.reltopdir('../buildlogs/%s' % os.path.basename(f)))make_dos_files.py https://gitlab.com/ppferreira/mzrte2 | Python | 167 lines
21 for current_orbital in self.orbitals: #maps through the orbitals 22 current_orbital_files = glob.glob(f'{prefix}*({current_atom})*({current_orbital})*') 23 102if __name__ == '__main__': 103 dirs = glob.glob('S*') 104 dirs = sorted(dirs) 125 126 clusters = glob.glob('MnZrTe2*') 127 clusters = sorted(clusters)make_dos_files.py https://gitlab.com/ppferreira/mzrte2 | Python | 167 lines
21 for current_orbital in self.orbitals: #maps through the orbitals 22 current_orbital_files = glob.glob(f'{prefix}*({current_atom})*({current_orbital})*') 23 102if __name__ == '__main__': 103 dirs = glob.glob('S*') 104 dirs = sorted(dirs) 125 126 clusters = glob.glob('CuZrTe2*') 127 clusters = sorted(clusters)test_po_files.py git://pkgs.fedoraproject.org/subscription-manager | Python | 162 lines
27 28po_files = glob.glob("po/*.po") 29langs = []list_ports_posix.py https://bitbucket.org/ipre/calico.git | Python | 197 lines
120 def comports(): 121 devices = glob.glob('/dev/ttyS*') + glob.glob('/dev/ttyUSB*') + glob.glob('/dev/ttyACM*') 122 return [(d, describe(d), hwinfo(d)) for d in devices] 125 def comports(): 126 devices = glob.glob('/dev/com*') 127 return [(d, d, d) for d in devices] 130 def comports(): 131 devices = glob.glob('/dev/ttyp*') 132 return [(d, d, d) for d in devices] 138 def comports(): 139 devices = glob.glob('/dev/cuad*') 140 return [(d, d, d) for d in devices] 144 """scan for available ports. return a list of device names.""" 145 devices = glob.glob('/dev/tty.*') 146 return [(d, d, d) for d in devices]setup.py https://bitbucket.org/mvngu/suppdycom.git | Python | 157 lines
63 64sources=glob.glob(os.path.join('src', '*.c')) 65include_dirs=[]local.py https://github.com/Roguelazer/mrjob.git | Python | 86 lines
35 def ls(self, path_glob): 36 for path in glob.glob(path_glob): 37 if os.path.isdir(path): 51 def path_exists(self, path_glob): 52 return bool(glob.glob(path_glob)) 53 58 def rm(self, path_glob): 59 for path in glob.glob(path_glob): 60 if os.path.isdir(path):vq-wav2vec_featurize.py https://gitlab.com/lwd17/enhanced_examplar_ae | Python | 250 lines
113 datadir = osp.join(self.data_dir, split, f"**/*.{self.extension}") 114 files = glob.glob(datadir, recursive=True) 115doxi_lib.py https://bitbucket.org/lazy_dogtown/doxi.git | Python | 267 lines
90 91 doxi_rulesets = glob.glob("doxi-rules/*.rules") 92 131 132 doxi_rulesets = glob.glob("%s/*.rules" % doxi_rules_dir) 133generate_py_protobufs.py https://github.com/chromium/chromium.git | Python | 147 lines
120 if self.proto_files is None: 121 files = glob.glob(os.path.join(self.source_dir, '*.proto')) 122 if self.recurse: 122 if self.recurse: 123 files.extend(glob.glob(os.path.join(self.source_dir, '**', '*.proto'))) 124 self.proto_files = [f.partition(self.proto_root_path + os.path.sep)[-1] for f in files]serializer_catalog.py https://github.com/jeckersb/cobbler.git | Python | 204 lines
148 results = [] 149 all_files = glob.glob("/var/lib/cobbler/config/%ss.d/*" % collection_type) 150 all_files = filter_upgrade_duplicates(all_files)samplesheet.py https://github.com/kdaily/bcbb.git | Python | 108 lines
94 with utils.chdir(ss_dir): 95 for ss in glob.glob("*.csv"): 96 fc_ids = _get_flowcell_id(ss, require_single)posix_apps.py https://gitlab.com/victorl/PX4Firmware | Python | 148 lines
35import glob 36builtins = glob.glob("builtin_commands/COMMAND*") 37getsplitresmask.py https://bitbucket.org/sstaggal/staggware.git | Python | 122 lines
44apix=float(sys.argv[2]) 45sets=glob.glob('set_*') 46estim_mp_sparse_mat.py https://gitlab.com/kyrgyzov/lsa_slurm | Python | 110 lines
54 55 LS = glob.glob(pDir+'dicts/'+rName+'/*.dc') 56 print len(LS)_mglob.py https://github.com/cboos/ipython.git | Python | 227 lines
8 9Unlike glob.glob, directories are not included in the glob unless specified 10with 'dir:' 182 elif ent.lower().startswith('dir:'): 183 res.extend(once_filter(filter(os.path.isdir,glob.glob(ent[4:])))) 184 elif ent.lower().startswith('cont:'): 187 elif os.path.isdir(ent) and exp_dirs: 188 res.extend(once_filter(filter(os.path.isfile,glob.glob(ent + os.sep+"*")))) 189 192 elif '*' in ent or '?' in ent: 193 res.extend(once_filter(filter(os.path.isfile,glob.glob(ent)))) 194update_test_checks.py git://github.com/earl/llvm-mirror.git | Python | 219 lines
81 for test in args.tests: 82 if not glob.glob(test): 83 common.warn("Test file pattern '%s' was not found. Ignoring it." % (test,)) 86 # On Windows we must expand the patterns ourselves. 87 test_paths = [test for pattern in args.tests for test in glob.glob(pattern)] 88 for test in test_paths:setup.py https://github.com/ericliang/matplotlib.git | Python | 228 lines
73 74data.extend(glob.glob('fonts/afm/*.afm')) 75data.extend(glob.glob('fonts/ttf/*.ttf')) 75data.extend(glob.glob('fonts/ttf/*.ttf')) 76data.extend(glob.glob('images/*.xpm')) 77data.extend(glob.glob('images/*.svg')) 77data.extend(glob.glob('images/*.svg')) 78data.extend(glob.glob('images/*.png')) 79data.extend(glob.glob('images/*.ppm'))collection.py https://github.com/sccolbert/scikits.image.git | Python | 321 lines
166 is a separate pattern. Files are found by passing the pattern(s) to 167 the ``glob.glob`` function. 168 conserve_memory : bool, optionalviews.py https://github.com/danohuiginn/yak.git | Python | 190 lines
125 """XXX: probably want to bolt on some todo-list parsing here""" 126 return [parse_textfile(x) for x in glob.glob(PROJECT_FILES)] 127gpgsign.py https://gitlab.com/krt/fdroidserver.git | Python | 78 lines
51 # Process any apks that are waiting to be signed... 52 for f in sorted(glob.glob(os.path.join(output_dir, '*.*'))): 53 if common.get_file_extension(f) == 'asc':gn_meta_sln.py https://github.com/chromium/chromium.git | Python | 214 lines
55 if os.path.exists(gn_file): 56 solutions = glob.glob(os.path.join("out", out_dir, "*.sln")) 57 for solution in solutions:rebal.py https://github.com/RoDaniel/featurehouse.git | Python | 321 lines
198 199 dirs = glob.glob(setprefix + "*") 200nightly_test_niflheim.el6.py https://gitlab.com/marcindulak/gpaw | Python | 119 lines
77os.system('tar xvzf gpaw-setups-latest.tar.gz') 78setups = tmpdir + '/gpaw/' + glob.glob('gpaw-setups-[0-9]*')[0] 79setup.py https://bitbucket.org/baris/pardus-projects.git | Python | 196 lines
45 filelist = [] 46 for filename in glob.glob1("ui", "*.ui"): 47 if FOR_KDE_4: 52 # Collect headers for desktop files 53 for filename in glob.glob("data/*.desktop.in"): 54 os.system("intltool-extract --type=gettext/ini %s" % filename) 74 # Update PO files 75 for item in glob.glob1("po", "*.po"): 76 os.system("msgmerge --update --no-wrap --sort-by-file po/%s po/%s.pot" % (item, PROJECT)) 103 print "Generating UIs..." 104 for filename in glob.glob1("ui", "*.ui"): 105 os.system("/usr/kde/4/bin/pykde4uic -o build/app/%s/ui_%s.py ui/%s" % (about.modName, filename.split(".")[0], filename)) 107 print "Generating RCs..." 108 for filename in glob.glob1("data", "*.qrc"): 109 os.system("/usr/bin/pyrcc4 data/%s -o build/app/%s_rc.py" % (filename, filename.split(".")[0]))setup.py https://bitbucket.org/agaricusb/minecraftforge.git | Python | 113 lines
80def copy_files(src_dir, dest_dir): 81 for file in glob.glob(os.path.join(src_dir, '*')): 82 if not os.path.isfile(file) or file.lower().endswith('.java'):boilerplate.py https://gitlab.com/unofficial-mirrors/kubernetes-contrib | Python | 199 lines
55 56 for path in glob.glob(os.path.join(args.boilerplate_dir, "boilerplate.*.txt")): 57 extension = os.path.basename(path).split(".")[1]task.py https://github.com/GoSteven/9517.git | Python | 253 lines
219prePic = None 220#for infile in glob.glob(os.path.join(path,'*.jpg')): 221# imagefile = infile1d_profile_quantization.py https://gitlab.com/IPMsim/DataAnalysis | Python | 79 lines
17 number_of_profiles = 0 18 for filepath in glob.glob(os.path.join(directory, xml_reader.pattern)): 19 profiles = xml_reader.extract_profiles_from_file(filepath)setup.py https://bitbucket.org/mqk/yt | Python | 224 lines
172 "yt/utilities/lib/kdtree.c"] + 173 glob.glob("yt/utilities/lib/healpix_*.c"), 174 include_dirs=["yt/utilities/lib/"], 193 "yt/utilities/lib/kdtree.c"] + 194 glob.glob("yt/utilities/lib/healpix_*.c"), 195 include_dirs=["yt/utilities/lib/"],test_shelve.py https://bitbucket.org/x893/sirflive.git | Python | 135 lines
17 finally: 18 for f in glob.glob(self.fn+"*"): 19 os.unlink(f) 27 finally: 28 for f in glob.glob(self.fn+"*"): 29 os.unlink(f) 37 finally: 38 for f in glob.glob(self.fn+"*"): 39 os.unlink(f) 100 if not self._in_mem: 101 for f in glob.glob(self.fn+"*"): 102 os.unlink(f)build_web_page.py https://gitlab.com/naagafreeman/ase | Python | 134 lines
67 68 tar = glob.glob('../dist/*.tar.gz')[0].split('/')[-1] 69 os.rename('../dist/' + tar, 'build/html/' + tar)get_pys60.py http://pygame-symbian-s60.googlecode.com/svn/trunk/ | Python | 318 lines
57 latest = (0,0,0) 58 for name in glob.glob(TARGET + "Python*SDK*.zip"): 59 name = os.path.basename(name) 73 # Extract files from archives. 74 for name in glob.glob(TARGET + "*.*"): 75 archive = name 301 if options.clean: 302 files = glob.glob(TARGET + "*.*") 303 for file in files:main.py https://bitbucket.org/anujdutt9/self-driving-car-nano-degree.git | Python | 169 lines
133 if argv[1] == 'images': 134 for image in glob.glob('test_images/*.jpg'): 135 img = imread(image)common.py https://github.com/OSSystems/oe-core.git | Python | 58 lines
12 # The top-level README file may have a suffix (like README.rst or README.txt). 13 readme_files = glob.glob(os.path.join(self.tc.layer['path'], 'README*')) 14 self.assertTrue(len(readme_files) > 0,setup.py https://github.com/ericliang/matplotlib.git | Python | 64 lines
21 22deps = glob.glob('src/*.c') 23data_source_tables_gen.py https://gitlab.com/lbennett/zipline | Python | 210 lines
90 table = None 91 for file_in in glob.glob(file_dir + "/*.gz"): 92 gzip_file = gzip.open(file_in)serialize_features.py https://bitbucket.org/GaugeAnomaly/face-clustering.git | Python | 111 lines
43 44 globs = glob.glob(os.path.join(args.input, "*.jpg")) 45 if args.num_of_faces:hadoop.py https://bitbucket.org/imageincloud/cloudman | Python | 225 lines
93 shutil.copy("/mnt/cm/id_rsa.pub", self.id_rsa_pub_key_path) 94 hdp = glob.glob(paths.P_HADOOP_TARS_PATH + "/hadoop.*") 95 img_hdp_ver = "0.0"vocabulary_backup.py https://gitlab.com/Seiris/annot.git | Python | 173 lines
47 # get vocabularies app 48 ls_appon = glob.glob( "appon*" ) 49 ls_appon.sort() 91 s_regexfixture = s_appon+"/fixtures/*_"+s_vocabulary+"_"+s_version_latest+"_backup.json" 92 ls_backuppathfile = glob.glob( s_regexfixture ) 93 i_latest = 0_auxiliary.py https://gitlab.com/cocorbin/development.git | Python | 134 lines
105 106 files = files + glob.glob('*.grm.*') 107 107 108 files = files + glob.glob('.grm.*') 109 109 110 files = files + glob.glob('*.ini') 111 111 112 files = files + glob.glob('*.pkl') 113 113 114 files = files + glob.glob('*.txt') 115mcdoc.py https://github.com/paniwani/ITK.git | Python | 171 lines
110 cmm = os.path.abspath(d+"/*/*/*/itk-module.cmake") 111 for fname in glob.glob(cmm): 112 f = file(fname, "r") 116 dname = os.path.dirname(fname) 117 for fname2 in glob.glob(dname+"/include/*.h"): 118 setGroup(fname2, module) 131 if os.path.isdir(fname): 132 for fname2 in glob.glob(fname+"/*.h"): 133 count += 1 151 count = 0 152 for fname in glob.glob(cmm): 153 f = file(fname, "r") 157 dname = os.path.dirname(fname) 158 for fname2 in glob.glob(dname+"/include/*.h"): 159 count += 1Cygdb.py https://github.com/robertwb/cython.git | Python | 158 lines
29 'cython_debug_info_*') 30 debug_files = glob.glob(pattern) 31mglob.py git://pkgs.fedoraproject.org/python-mglob | Python | 207 lines
9 10Unlike glob.glob, directories are not included in the glob unless specified 11with 'dir:' 162 elif ent.lower().startswith('dir:'): 163 res.extend(once_filter(filter(os.path.isdir,glob.glob(ent[4:])))) 164 166 elif os.path.isdir(ent) and exp_dirs: 167 res.extend(once_filter(filter(os.path.isfile,glob.glob(ent + os.sep+"*")))) 168 171 elif '*' in ent or '?' in ent: 172 res.extend(once_filter(filter(os.path.isfile,glob.glob(ent)))) 173fake_filesystem_unittest_test.py https://gitlab.com/jonnialva90/iridium-browser | Python | 107 lines
75 '''Fake glob module is bound''' 76 self.assertCountEqual(glob.glob('/test/dir1/dir*'), 77 []) 78 self.fs.CreateDirectory('/test/dir1/dir2a') 79 self.assertCountEqual(glob.glob('/test/dir1/dir*'), 80 ['/test/dir1/dir2a']) 81 self.fs.CreateDirectory('/test/dir1/dir2b') 82 self.assertCountEqual(glob.glob('/test/dir1/dir*'), 83 ['/test/dir1/dir2a', '/test/dir1/dir2b'])listFiles.py https://bitbucket.org/galaxy/galaxy-central/ | Python | 228 lines
89 testsuffix = '.gen_1' # glob these 90 flist = glob.glob('%s/*%s' % (d,testsuffix)) 91 flist = [x.split(testsuffix)[0] for x in flist] # leaves with a list of file set names 126def get_lib_pedfiles(): 127 dat = glob.glob('%s/ped/*.ped' % librepos) 128 dat += glob.glob('%s/ped/*.ped' % myrepos) 138 ext = 'phe' 139 dat = glob.glob('%s/pheno/*.%s' % (librepos,ext)) 140 dat += glob.glob('%s/pheno/*.%s' % (myrepos,ext)) 148def get_lib_bedfiles(): 149 dat = glob.glob('%s/plinkbed/*.bed' % librepos) 150 dat += glob.glob('%s/plinkbed/*.bed' % myrepos) 159def get_lib_fbatfiles(): 160 dat = glob.glob('%s/plinkfbat/*.ped' % librepos) 161 dat += glob.glob('%s/plinkfbat/*.ped' % myrepos)spack.py https://gitlab.com/polyphemus/core.git | Python | 112 lines
35 path = os.path.abspath(path) 36 species_file = glob.glob(os.path.join(path, "*.species")) + \ 37 glob.glob(os.path.join(path, "species")) 37 glob.glob(os.path.join(path, "species")) 38 reactions_file = glob.glob(os.path.join(path, "*.reactions")) + \ 39 glob.glob(os.path.join(path, "reactions")) 39 glob.glob(os.path.join(path, "reactions")) 40 spack_config = glob.glob(os.path.join(path, "spack_config")) 41 if spack_config:make_rst.py https://gitlab.com/tlunet/casper | Python | 202 lines
191 doc_dir += '/' 192 for old_rst in glob.glob(doc_dir+'*.rst'): 193 os.remove(old_rst)gyptest-all.py https://bitbucket.org/jjgod/qt-vtl.git | Python | 94 lines
64def clean_dep_files(): 65 for file in (glob.glob('relocate/src/dep_*.txt') + 66 glob.glob('relocate/src/deps_all_done_*.txt')):jinjify.py https://gitlab.com/phora/nikola | Python | 227 lines
42 lookup.loader = jinja2.FileSystemLoader([out_templates_path], encoding='utf-8') 43 for template in glob.glob(os.path.join(in_templates_path, "*.tmpl")): 44 out_template = os.path.join(out_templates_path, os.path.basename(template))sort+group.py https://github.com/RoDaniel/featurehouse.git | Python | 124 lines
90 sdir = os.path.dirname(sdir) 91 files = glob.glob(os.path.join(hdir, "*", "*", "*")) 92 if sdir != hdir: 92 if sdir != hdir: 93 files.extend(glob.glob(os.path.join(sdir, "*", "*", "*"))) 94 else: 94 else: 95 files = glob.glob(os.path.join(hdir, "*", "*")) 96 files.extend(glob.glob(os.path.join(sdir, "*", "*")))jailreader.py https://github.com/RoDaniel/featurehouse.git | Python | 143 lines
78 for path in self.__opts[opt].split("\n"): 79 pathList = glob.glob(path) 80 if len(pathList) == 0:pilfile.py https://github.com/gpolo/pil-py3k.git | Python | 93 lines
65 if glob.has_magic(file): 66 out.extend(glob.glob(file)) 67 else:support.py https://gitlab.com/lepaperwan/Deluge-YaRSS2 | Python | 198 lines
76def get_data_files(subdirectory, files='*.dat', search_dir=test_dir): 77 return sorted(glob.glob(os.path.join(search_dir, subdirectory, files))) 78createProjects.py https://github.com/paulobarcelos/openFrameworks.git | Python | 226 lines
112 else: 113 for lib in glob.glob(os.path.join(of_root,basefolder,'lib',arch,'*.a')): 114 baselib = lib[len(of_root)+1:] 115 addCBPLibrary(project,os.path.join('..','..','..',baselib)) 116 for lib in glob.glob(os.path.join(of_root,basefolder,'lib',arch,'*.so')): 117 baselib = lib[len(of_root)+1:]make_data.py https://github.com/ximenesuk/openmicroscopy.git | Python | 98 lines
82 pat = "%s/ice*%s.jar" % (rep, version) 83 cp = ":".join(glob.glob(pat)) 84 javac_cmd = "javac -target 1.6 -cp "utils.py https://bitbucket.org/darcyg/shenzhou-iv-stm32f107-rt-thread.git | Python | 132 lines
115 if string.find( pathname, '*' ) >= 0: 116 newpath = glob.glob( pathname ) 117 newpath.sort() # sort files -- this is important because