100+ results results for 'glob.glob lang:python' (176 ms)

Not the results you expected?
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()
                    
                
base.py https://gitlab.com/pooja043/Globus_Docker_2 | 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)))
                    
                
test_import_tools.py https://github.com/SEL-Columbia/formhub.git | Python | 79 lines
                    
17def images_count(username="bob"):
                    
18    images = glob.glob(
                    
19        os.path.join(settings.MEDIA_ROOT, username, 'attachments', '*'))
                    
35        if settings.TESTING_MODE:
                    
36            images = glob.glob(
                    
37                os.path.join(
                    
                
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):
                    
                
work-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_pattern
                    
                
models.py https://bitbucket.org/rukku/webandgis.git | Python | 76 lines
                    
61    os.chdir(zip_out)
                    
62    shapefiles = glob.glob('*.shp')
                    
63
                    
                
filebased.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 filelist
                    
                
handlers.py https://github.com/jstenar/ipython.git | Python | 86 lines
                    
31            )
                    
32    for logo_file in glob.glob(pjoin(resource_dir, 'logo-*')):
                    
33        fname = os.path.basename(logo_file)
                    
                
show-tool-versions.py https://github.com/jsgf/tahoe-lafs.git | Python | 162 lines
                    
10    import glob
                    
11    eggz = glob.glob('setuptools-*.egg')
                    
12    if len(eggz) > 0:
                    
                
develop.py https://github.com/jsgf/tahoe-lafs.git | Python | 165 lines
                    
52        # pick up setup-dir .egg files only: no .egg-info
                    
53        self.package_index.scan(glob.glob('*.egg'))
                    
54
                    
                
histogram_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 filei
                    
                
endovis_instrument_2015.py https://github.com/warmspringwinds/pytorch-segmentation-detection.git | Python | 225 lines
                    
76        # anything else
                    
77        saved_annotations = glob.glob( os.path.join(saved_annotations_path, ('[0-9]' * 8) + '.png') )
                    
78        
                    
                
whole_surface_avgs.py https://gitlab.com/Cadair/period-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()
                    
                
__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:
                    
                
queue.py https://github.com/wistbean/learn_python3_spider.git | Python | 229 lines
                    
122    def _cleanup(self):
                    
123        for x in glob.glob(os.path.join(self.path, 'q*')):
                    
124            os.remove(x)
                    
                
avatar-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)):
                    
                
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)
                    
                
_fortran.py https://github.com/mantidproject/3rdpartylibs-mac.git | Python | 154 lines
                    
144    exclude_pattern = re.compile('_subr_[0-9]')
                    
145    source_fnames = [f for f in glob.glob(os.path.join(source_dir, '*.f'))
                    
146                             if not exclude_pattern.search(os.path.basename(f))]
                    
                
xbb_blast.py https://github.com/timwintle/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'))
                    
39
                    
                
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]
                    
                
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 have
                    
                
git.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]
                    
                
anvio.py https://github.com/nekrut/galaxy.git | Python | 165 lines
                    
103            if basename is not None and not os.path.exists(os.path.join(dataset.extra_files_path, basename)):
                    
104                for name in glob.glob(os.path.join(dataset.extra_files_path, f"*{basename}")):
                    
105                    dataset.metadata.anvio_basename = os.path.basename(name)
                    
                
test_image.py https://github.com/pytorch/vision.git | Python | 159 lines
                    
64        # Truncated images should raise an exception
                    
65        truncated_images = glob.glob(
                    
66            os.path.join(DAMAGED_JPEG, 'corrupt*.jpg'))
                    
                
check-git-repo-availability.py https://gitlab.com/onitake/fdroiddata | Python | 74 lines
                    
11else:
                    
12    files = sorted(glob.glob('metadata/*.yml'))
                    
13
                    
                
tests.py https://github.com/ask/puka.git | Python | 89 lines
                    
31def main_coverage(TESTS):
                    
32    TEST_NAMES = [f.rpartition('.')[0] for f in glob.glob("test_*.py")]
                    
33    TEST_NAMES.sort()
                    
37    BAD_MODULES=(sys.argv[3] if len(sys.argv) >= 4 else '').split(',')
                    
38    MODULE_NAMES=[sys.argv[2] + '.' +f[0:-3] for f in glob.glob("*.py") if f not in BAD_MODULES]
                    
39    MODULE_NAMES.sort()
                    
                
autoTracto2regions.py https://github.com/LinjieChen/Slicer3.git | Python | 76 lines
                    
35 
                    
36    pars = glob.glob('*.in')
                    
37    dwis = glob.glob('*.dwi')
                    
37    dwis = glob.glob('*.dwi')
                    
38    rois = glob.glob('*.roi')
                    
39    wmas = glob.glob('*.wm')
                    
                
example.py https://gitlab.com/jonnialva90/iridium-browser | Python | 121 lines
                    
116    '''
                    
117    return glob.glob(glob_path)
                    
118
                    
                
tasks.py https://github.com/mozilla/batucada.git | Python | 103 lines
                    
100        # remove frame image files.
                    
101        files = glob.glob(self.frame_prefix + '*')
                    
102        for f in files:
                    
                
plot.py https://bitbucket.org/6tisch/simulator.git | Python | 157 lines
                    
51        # load data
                    
52        for file_path in sorted(glob.glob(os.path.join(subfolder, '*.kpi'))):
                    
53            curr_combination = os.path.basename(file_path)[:-8] # remove .dat.kpi
                    
                
gen-build.py https://github.com/curriegrad2004/FreeSWITCH.git | Python | 172 lines
                    
166  for pat in string.split(patterns):
                    
167    files.extend(glob.glob(pat))
                    
168  return files
                    
                
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):
                    
                
recipe-576437.py https://github.com/ActiveState/code.git | Python | 71 lines
                    
41    #here we list all the file on the shortcut directory
                    
42    files = glob.glob(sys.path[0]+'/*')
                    
43    # here we take one file path
                    
43    # here we take one file path
                    
44    path = glob.glob(sys.path[0])[0]
                    
45    #we normalize the path for python
                    
                
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:
                    
                
misc.py https://github.com/fabiomdiniz/Frey.git | Python | 114 lines
                    
41    files = []
                    
42    files.extend(glob.glob(os.path.join(directory, '*.so')))
                    
43    files.extend(glob.glob(os.path.join(directory, '*.dll')))
                    
43    files.extend(glob.glob(os.path.join(directory, '*.dll')))
                    
44    files.extend(glob.glob(os.path.join(directory, '*.dylib')))
                    
45    return files
                    
                
features_extractor.py https://github.com/microsoft/SPTAG.git | Python | 169 lines
                    
25    """
                    
26    all_files = glob.glob(glob_pattern, recursive=recursive)
                    
27    print('Found %s files using pattern: %s' % (len(all_files), glob_pattern))
                    
                
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):
                    
                
googlenet_tinyyolov3.py https://github.com/Xilinx/Vitis-AI.git | Python | 98 lines
                    
43    for ext in fileExtension:
                    
44      images[g].extend(glob.glob(imageDirectory[g] + '/' + ext))
                    
45    nImages = nImages + len(images[g])
                    
                
conftest.py https://github.com/micasense/imageprocessing.git | Python | 190 lines
                    
46def panel_rededge_file_list(files_dir):
                    
47    return sorted(glob.glob(os.path.join(files_dir, 'IMG_0000_*.tif')))
                    
48
                    
50def non_panel_rededge_file_list(files_dir):
                    
51    return sorted(glob.glob(os.path.join(files_dir, 'IMG_0001_*.tif')))
                    
52
                    
60def panel_altum_file_list(altum_files_dir):
                    
61    return sorted(glob.glob(os.path.join(altum_files_dir, 'IMG_0000_*.tif')))
                    
62
                    
72def panel_10band_rededge_file_list(ten_band_files_dir):
                    
73    return sorted(glob.glob(os.path.join(ten_band_files_dir, 'IMG_0000_*.tif')))
                    
74
                    
76def flight_10band_rededge_file_list(ten_band_files_dir):
                    
77    return sorted(glob.glob(os.path.join(ten_band_files_dir, 'IMG_0431_*.tif')))
                    
78
                    
                
base.py https://github.com/deepmind/kapitan.git | Python | 169 lines
                    
42        for input_path in comp_obj["input_paths"]:
                    
43            globbed_paths = [glob.glob(os.path.join(path, input_path)) for path in self.search_paths]
                    
44            inputs = list(itertools.chain.from_iterable(globbed_paths))
                    
                
FileManager.py https://github.com/introlab/OpenIMU.git | Python | 82 lines
                    
12        # Add files to list
                    
13        files = glob.glob(from_path + "/**/*.*", recursive=True)  # Files in sub folders
                    
14        for file in files:
                    
                
test_handler_tb_stats.py https://github.com/Project-MONAI/MONAI.git | Python | 72 lines
                    
42            # check logging output
                    
43            self.assertTrue(len(glob.glob(tempdir)) > 0)
                    
44
                    
67            # check logging output
                    
68            self.assertTrue(len(glob.glob(tempdir)) > 0)
                    
69
                    
                
util.py https://github.com/shantigilbert/Sx05RE.git | Python | 96 lines
                    
13
                    
14    fns = glob.glob('{}/event*'.format(input_device_dir))
                    
15    fns = list(filter(is_device, fns))
                    
                
gentmpkconfig.py https://github.com/sonydevworld/spresense.git | Python | 73 lines
                    
58
                    
59kconfigs = glob.glob('../*/Kconfig')
                    
60
                    
62if 'SPRESENSE_HOME' in os.environ:
                    
63    kconfigs = kconfigs + glob.glob(os.path.join(os.environ['SPRESENSE_HOME'], "Kconfig"))
                    
64
                    
                
analyze_result_log.py https://github.com/yaneurao/YaneuraOu.git | Python | 104 lines
                    
69#	print os.path.join(sys.argv[1], '*', 'log')
                    
70	for file_path in sorted(glob.glob(os.path.join(sys.argv[1], '*.log'))):
                    
71		fig = analyze_log(file_path)
                    
                
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"))
                    
                
pack.py https://github.com/LeelaChessZero/lczero-training.git | Python | 85 lines
                    
23    for d in dirs:
                    
24        for f in glob.glob(os.path.join(d, "training.*.gz")):
                    
25            ids.append(int(os.path.basename(f).split('.')[-2]))
                    
                
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)
                    
                
voice_conversion_test.py https://github.com/Hiroshiba/become-yukarin.git | Python | 76 lines
                    
38        if p.suffix in ['.npy', '.npz']:
                    
39            fn = glob.glob(str(input_wave_directory / p.stem) + '.*')[0]
                    
40            p = Path(fn)
                    
52
                    
53    input_paths = list(sorted([Path(p) for p in glob.glob(str(config.dataset.input_glob))]))
                    
54    numpy.random.RandomState(config.dataset.seed).shuffle(input_paths)
                    
                
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)
                    
                
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)
                    
                
test_lorapayload.py https://github.com/jieter/python-lora.git | Python | 77 lines
                    
18def fixtures():
                    
19    for device_path in glob.glob(os.path.join(FIXTURES_PATH, "*")):
                    
20        if device_path.endswith("README.md"):
                    
27        # text all the files ending in xml in the path we just discovered
                    
28        for fixture_filename in glob.glob(os.path.join(device_path, "payload*.xml")):
                    
29
                    
                
firefox_media_tests_buildbot.py https://github.com/rillian/firefox.git | Python | 122 lines
                    
97        # logs to upload: broadest level (info), error, screenshots
                    
98        uploads = glob.glob(os.path.join(log_screenshots_dir, '*'))
                    
99        log_files = self.log_obj.log_files
                    
                
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):
                    
                
netperf.py https://github.com/thearn/OpenMDAO-Framework.git | Python | 132 lines
                    
126
                    
127    for path in glob.glob('Echo_*'):
                    
128        shutil.rmtree(path, onerror=onerror)
                    
                
provision.py https://github.com/zulip/python-zulip-api.git | Python | 80 lines
                    
13    bots_dir = os.path.join(current_dir, "bots")
                    
14    bots_subdirs = map(lambda d: os.path.abspath(d), glob.glob(bots_dir + '/*'))
                    
15    paths = filter(lambda d: os.path.isdir(d), bots_subdirs)
                    
                
se_batch.py https://github.com/anicolson/DeepXi.git | Python | 56 lines
                    
40	for fname in fnames:
                    
41		for fpath in glob.glob(os.path.join(fdir, fname)):
                    
42			for snr in snr_l:
                    
                
unsupportedsavestates.py https://github.com/poliva/pyqtggpo.git | Python | 152 lines
                    
34        localjson = os.path.join(d, SyncWorker.JSON_INDEX_FILENAME)
                    
35        for filename in glob.glob(os.path.join(d, '*.fs')):
                    
36            localJsonDigest[os.path.basename(filename)] = sha256digest(filename)
                    
                
gen_vid_thunks.py https://github.com/StanfordSNR/gg.git | Python | 93 lines
                    
43    for stc in SUFFIX_TO_CLEAR:
                    
44        to_delete.extend(glob.glob('*.' + stc))
                    
45
                    
                
reparseprops.py https://github.com/brmson/Sentence-selection.git | Python | 95 lines
                    
40    qnum=0
                    
41    for path in glob.glob(PATH + '/*'):
                    
42        i=0
                    
                
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*")
                    
37
                    
                
data_preprocess.py https://github.com/athon2/BraTS2018_NvNet.git | Python | 126 lines
                    
107    subject_ids = list()
                    
108    for subject_dir in glob.glob(os.path.join(data_dir, "*", "*")):
                    
109        subject_ids.append(os.path.basename(subject_dir))
                    
                
getsplitresmask.py https://bitbucket.org/sstaggal/staggware.git | Python | 122 lines
                    
44apix=float(sys.argv[2])
                    
45sets=glob.glob('set_*')
                    
46
                    
                
estim_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)
                    
                
cleanup.py https://github.com/gigantum/gigantum-client.git | Python | 69 lines
                    
33    if os.name == 'nt':
                    
34        user_projects = glob.glob(f'{root_dir}\*\*\labbooks\selenium-project-*')
                    
35    else:
                    
35    else:
                    
36        user_projects = glob.glob(f'{root_dir}/*/*/labbooks/selenium-project-*')
                    
37    for user_project_path in user_projects:
                    
49    if os.name == 'nt':
                    
50        user_datasets = glob.glob(f'{server_dir}\*\*\datasets\selenium-dataset-*')
                    
51        cache_datasets = glob.glob(f'{dataset_file_cache_dir}\*\*\selenium-dataset-*')
                    
52    else:
                    
53        user_datasets = glob.glob(f'{root_dir}/*/*/datasets/selenium-dataset-*')
                    
54        cache_datasets = glob.glob(f'{dataset_file_cache_dir}/*/*/selenium-dataset-*')
                    
                
processor.py https://github.com/blackeagle01/Abnormal_Event_Detection.git | Python | 120 lines
                    
65def remove_old_images(path):
                    
66	filelist = glob.glob(os.path.join(path, "*.png"))
                    
67	for f in filelist:
                    
                
simple_track_dataloader.py https://github.com/argoai/argoverse-api.git | Python | 150 lines
                    
117            """
                    
118        ply_fpaths = sorted(glob.glob(f"{self.data_dir}/{log_id}/lidar/PC_*.ply"))
                    
119        return ply_fpaths
                    
129        """
                    
130        cam_img_fpaths = sorted(glob.glob(f"{self.data_dir}/{log_id}/{camera_name}/{camera_name}_*.jpg"))
                    
131        return cam_img_fpaths
                    
                
gotoolchain.py https://github.com/openbmc/openbmc.git | Python | 71 lines
                    
21        # FIXME: this is a very naive implementation
                    
22        return glob.glob(pattern)[0]
                    
23
                    
                
workspace_commands.py https://github.com/andreikop/completer.git | Python | 237 lines
                    
149        """
                    
150        files = glob.glob(os.path.expanduser(self._path))
                    
151        return len(files) > 0 and \
                    
                
gpgsign.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':
                    
                
rebal.py https://github.com/RoDaniel/featurehouse.git | Python | 321 lines
                    
198
                    
199    dirs = glob.glob(setprefix + "*")
                    
200
                    
                
nightly_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]
                    
79    
                    
                
test.py https://github.com/hbutsuak95/monolayout.git | Python | 158 lines
                    
92        # Searching folder for images
                    
93        paths = glob.glob(os.path.join(
                    
94            args.image_path, '*.{}'.format(args.ext)))
                    
                
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'):
                    
                
transport.py https://github.com/chdorner/titanium_mobile.git | Python | 143 lines
                    
45
                    
46	files = glob.glob('%s/*.xcodeproj' % build_dir)
                    
47	if len(files)!=1:
                    
                
snippet.py https://github.com/gistable/gistable.git | Python | 73 lines
                    
12_mcount = 0
                    
13for filename in glob.glob(_mtype):
                    
14    # fh = open(filename, 'r')
                    
                
1d_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)
                    
                
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)
                    
                
dbserve.py https://github.com/adrianpike/wwscc.git | Python | 134 lines
                    
77		data = ''
                    
78		for file in glob.glob('%s/*.db' % (config['seriesdir'])):
                    
79			try:
                    
                
data_reader_DNN_v2.py https://github.com/jtkim-kaist/VAD.git | Python | 177 lines
                    
16        self._norm_dir = norm_dir
                    
17        self._input_file_list = sorted(glob.glob(input_dir+'/*.bin'))
                    
18        self._input_spec_list = sorted(glob.glob(input_dir+'/*.txt'))
                    
18        self._input_spec_list = sorted(glob.glob(input_dir+'/*.txt'))
                    
19        self._output_file_list = sorted(glob.glob(output_dir+'/*.bin'))
                    
20        self._file_len = len(self._input_file_list)
                    
                
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')
                    
23
                    
                
fedora_epel_push.py https://github.com/GunioRobot/cobbler.git | Python | 147 lines
                    
86tarsearch = "%s/*.tar.gz" % rpmbuild
                    
87tars = glob.glob(tarsearch)
                    
88if len(tars) != 1:
                    
102specsearch = "%s/*.spec" % projdir
                    
103specs = glob.glob(specsearch)
                    
104if len(specs) != 1:
                    
                
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 
                    
                
test_plotStrike.py https://github.com/MTgeophysics/mtpy.git | Python | 76 lines
                    
25    def default(self):
                    
26        edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
                    
27        pt_obj = PlotStrike(fn_list=edi_file_list, plot_yn='n', save_figure_path=self._temp_dir, fig_size=(8, 6), fig_dpi=100)
                    
35    def rotation(self):
                    
36        edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
                    
37        # change rotation
                    
42    def type(self):
                    
43        edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
                    
44        # plot type
                    
49    def tipper(self):
                    
50        edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
                    
51        # plot_tipper
                    
56    def fold(self):
                    
57        edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
                    
58        # fold
                    
                
_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')
                    
115
                    
                
mongo_schema.py https://github.com/yandex/yandex-taxi-testsuite.git | Python | 83 lines
                    
79    result = {}
                    
80    for path in glob.glob(os.path.join(directory, '*.yaml')):
                    
81        collection, _ = os.path.splitext(os.path.basename(path))
                    
                
fake_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'])
                    
                
upload-node-headers.py https://github.com/brave/muon.git | Python | 147 lines
                    
111    s3put(bucket, access_key, secret_key, dist_dir(),
                    
112          'atom-shell/dist/{0}'.format(version), glob.glob('node-*.tar.gz'))
                    
113    s3put(bucket, access_key, secret_key, dist_dir(),
                    
113    s3put(bucket, access_key, secret_key, dist_dir(),
                    
114          'atom-shell/dist/{0}'.format(version), glob.glob('iojs-*.tar.gz'))
                    
115
                    
                
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:
                    
                
common_stats.py https://github.com/erjiang/polyworld.git | Python | 194 lines
                    
83
                    
84    paths = glob.glob( os.path.join(path_run, 'stats', 'stat.*') )
                    
85    paths.sort( lambda x, y: __path2step(x) - __path2step(y) )
                    
                
purchases_to_jrows.py https://github.com/datagym-ru/retailhero-recomender-baseline.git | Python | 161 lines
                    
143    print("calculate_unique_clients_from: {}".format(output_dir))
                    
144    for js_file in glob.glob(output_dir + "/*.jsons"):
                    
145        for _ in open(js_file):
                    
                
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)
                    
                
netplan.py https://github.com/CanonicalLtd/subiquity.git | Python | 163 lines
                    
151    for d in dirs:
                    
152        paths.extend(glob.glob(os.path.join(root, d, "netplan", wildcard)))
                    
153
                    
                
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')):
                    
                
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:
                    
                
mcdoc.py https://github.com/dirkpadfield/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 += 1
                    
                
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
                    
                
encodingtest.py https://github.com/wehriam/awspider.git | Python | 169 lines
                    
35        
                    
36        self.filenames = glob.glob( os.path.join(os.path.dirname(__file__), 'data', '**', '*.xml') )
                    
37        
                    
                
base_check_version.py https://gitlab.com/libvirt/autotest.git | Python | 69 lines
                    
44        for glob_str in self.PYTHON_BIN_GLOB_STRINGS:
                    
45            pythons.extend(glob.glob(glob_str))
                    
46
                    
                
utils.py https://github.com/atareao/Touchpad-Indicator.git | Python | 71 lines
                    
56        onlyfiles = [basename(f).replace('.list', '') for f in
                    
57                     glob.glob(join(mypath, '*.list'))
                    
58                     if isfile(join(mypath, f))]
                    
                
joystick.py https://github.com/ncsurobotics/seawolf5.git | Python | 219 lines
                    
16    """
                    
17    return glob.glob("/dev/js*") + glob.glob("/dev/input/js*")
                    
18
                    
                
email_input.py https://github.com/JRMeyer/tensorflow-tutorial.git | Python | 162 lines
                    
74        pathLabelPairs={}
                    
75        for hamPath in glob.glob(hamDir+'*'):
                    
76            pathLabelPairs.update({hamPath:(0,1)})
                    
76            pathLabelPairs.update({hamPath:(0,1)})
                    
77        for spamPath in glob.glob(spamDir+'*'):
                    
78            pathLabelPairs.update({spamPath:(1,0)})
                    
                
test_functional.py https://bitbucket.org/birkenfeld/sphinx-contrib/ | Python | 231 lines
✨ Summary

This Python code tests the functionality of a Sphinx documentation generator, specifically its ability to render PlantUML diagrams in various formats (HTML, LaTeX, PDF). It creates temporary directories and files, runs Sphinx with different builders and options, and verifies that the generated output matches expected results. The tests cover various scenarios, including simple diagrams, captions, alignment, and non-ASCII characters.

                    
66    """
                    
67    pngfiles = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
                    
68    assert len(pngfiles) == 1
                    
68    assert len(pngfiles) == 1
                    
69    svgfiles = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.svg'))
                    
70    assert len(svgfiles) == 1
                    
93    """
                    
94    files = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
                    
95    assert len(files) == 1
                    
130    """
                    
131    files = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
                    
132    content = readfile(files[0]).splitlines()
                    
143    """
                    
144    files = glob.glob(os.path.join(_outdir, 'plantuml-*.png'))
                    
145    assert len(files) == 1
                    
                
util.py https://github.com/apple/foundationdb.git | Python | 76 lines
                    
60def import_subclasses(filename, module_path):
                    
61    for f in glob.glob(os.path.join(os.path.dirname(filename), '*.py')):
                    
62        fn = os.path.basename(f)
                    
                
utils.py https://gitlab.com/bsuper/convnet-keras | Python | 178 lines
                    
16    print "Count is: {0}".format(count)
                    
17    print glob.glob("./*") # ./train, ./test, ./val
                    
18    for ttv in glob.glob("./*"):
                    
18    for ttv in glob.glob("./*"):
                    
19        folders_list = glob.glob(ttv + "/*") # ./train/face ...
                    
20        for folder in folders_list:
                    
23            outfolder = "./" + ttv.split("/")[-1] + "/new_" + fldername + "/"
                    
24            files_list = glob.glob(folder + "/*")
                    
25            for f in files_list:
                    
43    os.chdir(input_dir)
                    
44    print glob.glob("./*") # ./train, ./teset, ./val
                    
45    for ttv in glob.glob("./*"):
                    
45    for ttv in glob.glob("./*"):
                    
46        folders_list = glob.glob(ttv + "/*")
                    
47        for folder in folders_list:
                    
                
icon_handler.py https://bitbucket.org/fox06/updatesprocessor.git | Python | 70 lines
                    
17import glob, random
                    
18ico_files = glob.glob(os.path.join(sys.prefix, "*.ico"))
                    
19if not ico_files:
                    
19if not ico_files:
                    
20    ico_files = glob.glob(os.path.join(sys.prefix, "PC", "*.ico"))
                    
21if not ico_files:
                    
                
process_function_template.py https://github.com/ricardogsilva/Quantum-GIS.git | Python | 139 lines
                    
45
                    
46for f in sorted(glob.glob('resources/function_help/json/*')):
                    
47    with open(f, encoding="utf-8") as function_file:
                    
130
                    
131for f in sorted(glob.glob('resources/function_help/text/*')):
                    
132    n = os.path.basename(f)
                    
                
__init__.py https://gitlab.com/abhi1tb/build | Python | 114 lines
                    
57    # front of our sys.path.
                    
58    sys.path[:] = glob.glob(os.path.join(WHEEL_DIR, "*.whl")) + sys.path
                    
59
                    
                
fabfile.py https://github.com/yyuu/fabfile-kyototycoon.git | Python | 119 lines
                    
34## kyotocabinet
                    
35opt.kc_archive = (lambda: glob.glob('kyotocabinet-*.tar.gz')[-1])
                    
36opt.kc_extracted = (lambda: os.path.splitext(os.path.splitext(opt.kc_archive)[0])[0])
                    
38## kyototycon
                    
39opt.archive = (lambda: glob.glob('kyototycoon-*.tar.gz')[-1])
                    
40opt.extracted = (lambda: os.path.splitext(os.path.splitext(opt.archive)[0])[0])
                    
                
get_wiki_articles_run.py https://github.com/dedan/runs-gensim.git | Python | 149 lines
                    
48    # get all txt files in a folder and iterate over them
                    
49    filelist = glob.glob(os.path.join(base_path,
                    
50                                      p['folder_path'],
                    
                
conversionstest.py https://github.com/kazcw/miro.git | Python | 160 lines
                    
137    def test_parse_ffmpeg_output(self):
                    
138        for mem in glob.glob(os.path.join(DATA, "ffmpeg_info*")):
                    
139            lines = open(mem, "r").read().splitlines()
                    
                
test.py https://gitlab.com/pranith/gem5 | Python | 48 lines
                    
36kernel_path = os.path.dirname(executable)
                    
37kernel_files = glob.glob(os.path.join(kernel_path, '*.asm'))
                    
38if kernel_files:
                    
                
14-top-Topics-jsons.py https://gitlab.com/jaumetet/crossreads | Python | 66 lines
                    
30  print "----------- TGid: "+str(thetopic["mallet_ids_inluded"])
                    
31  for d in glob.glob(path0+'*'):
                    
32      #print d
                    
                
_psposix.py https://bitbucket.org/chenfuzhi/scan_proxy_ip.git | Python | 121 lines
                    
111    ret = {}
                    
112    ls = glob.glob('/dev/tty*') + glob.glob('/dev/pts/*')
                    
113    for name in ls:
                    
                
most2geoclaw.py https://github.com/dlgeorge/clawpack-4.x.git | Python | 107 lines
                    
35    """
                    
36    files = glob.glob(r'%s*' % fnameprefix)
                    
37    files.sort()
                    
67    """
                    
68    files = glob.glob(r'%s*' % fnameprefix)
                    
69    files.sort()
                    
                
compile.py https://github.com/esitarski/CrossMgr.git | Python | 121 lines
                    
49		doNothing = True
                    
50		for fname in glob.glob("./*.txt"):
                    
51			fbase = os.path.splitext(os.path.basename(fname))[0]
                    
79			
                    
80		for fname in glob.glob("./*.txt"):
                    
81			print( fname, '...' )
                    
103		zf = zipfile.ZipFile( ZipFileName, 'w' )
                    
104		for fname in glob.glob("./*.html"):
                    
105			if not ('prolog' in fname or 'epilog' in fname):
                    
113
                    
114		for fname in glob.glob( os.path.join(htmldocdir, '*.html') ):
                    
115			os.remove( fname )
                    
115			os.remove( fname )
                    
116		for fname in glob.glob("./*.html"):
                    
117			if not ('prolog' in fname or 'epilog' in fname):
                    
                
prp_PyPack.py https://github.com/H-uru/PyPRP.git | Python | 124 lines
                    
108####
                    
109####for i in glob.glob("newpak/*.pyc"):
                    
110####    print "packing %s" %i
                    
                
index.py https://github.com/Yell0wra1n/star.git | Python | 73 lines
                    
4    db = anydbm.open('index', 'c')
                    
5    files = glob.glob('%s/*.txt' % path)
                    
6    db['_files'] = '\0'.join(files)
                    
                
individual_coverage.py https://github.com/mitmproxy/mitmproxy.git | Python | 84 lines
                    
65    excluded = ['mitmproxy/contrib/', 'mitmproxy/test/', 'mitmproxy/tools/', 'mitmproxy/platform/']
                    
66    src_files = glob.glob('mitmproxy/**/*.py', recursive=True)
                    
67    src_files = [f for f in src_files if os.path.basename(f) != '__init__.py']
                    
                
make_data.py https://github.com/qidane/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 "
                    
                
make-apt-cdrom.py https://repo.or.cz/camarabuntu.git | Python | 114 lines
                    
54
                    
55for package, filename in [(Package(filename=filename), filename) for filename in glob.glob( os.path.join( debdir, "*.deb" ) )]:
                    
56    print "Found deb %s" % package
                    
                
fegba2lt_mapsprites.py https://gitlab.com/Nick2001/lex-talionis | Python | 174 lines
                    
65# Get images
                    
66images = glob.glob('*.png')
                    
67
                    
                
pak_utils.py https://bitbucket.org/MateuszBoryckiHG/magiccasino-buildscripts.git | Python | 126 lines
                    
113    subfolders = [rootDir.as_posix()]
                    
114    subfolders.extend(glob.glob(rootDir.as_posix() + "/*/"))
                    
115    subfolders.extend(glob.glob(rootDir.as_posix() + "/**/*/", recursive=True))
                    
                
eventparse.py https://github.com/labx-technologies-llc/mb-linux-labx.git | Python | 93 lines
                    
18    if not args:
                    
19        args = filter(lambda s: 'A' <= s[0] <= 'Z', glob.glob("*.py"))
                    
20        if not args:
                    
                
setup.py https://bitbucket.org/vionika/spin.android.git | Python | 73 lines
                    
23# Browser-specific requirements
                    
24requirements_files = glob.glob("requirements_*.txt")
                    
25
                    
                
tests.py https://github.com/fone4u/nodebox-pyobjc.git | Python | 59 lines
                    
31
                    
32for testPath in glob.glob('%s/*' % TEST_PATH):
                    
33    if not os.path.isdir(testPath): continue
                    
35    print name
                    
36    testFiles = glob.glob('%s/*.png' % testPath)
                    
37    try:
                    
                
plugin_utils.py https://bitbucket.org/spaetz/pyblosxom_blog | Python | 167 lines
                    
154        for mem in plugin_dirs:
                    
155            file_list = glob.glob(os.path.join(mem, "*.py"))
                    
156
                    
                
create_resources_text_script.py http://swingamesdk.googlecode.com/svn/trunk/ | Python | 118 lines
                    
91    f = open(get_test_directory() + "HowToResources.txt",'w')
                    
92    dirList = glob.glob(os.path.join(get_test_directory(), "HowTo*.pas"))
                    
93    for fname in dirList:
                    
                
second_phos_ratio.py https://github.com/ecell/epdp.git | Python | 281 lines
                    
272
                    
273        filelist = glob.glob( globpattern )
                    
274
                    
                
data_parser.py https://github.com/felipecode/coiltraine.git | Python | 68 lines
                    
44
                    
45    measurements_list = glob.glob(os.path.join(episode, 'measurement*'))
                    
46    # Open a sample measurement
                    
                
cite.py https://gitlab.com/dylan-ashley/minerva-python | Python | 95 lines
                    
65    lines = list()
                    
66    for item in glob.glob("{}/*".format(path)):
                    
67        if os.path.isdir(item):
                    
                
test_detectors.py https://github.com/facebookresearch/maskrcnn-benchmark.git | Python | 143 lines
                    
56    else:
                    
57        files = glob.glob(
                    
58            os.path.join(cfg_root_path, "./**/*.yaml"), recursive=True)
                    
                
setup.py https://github.com/0902horn/urlwatch-modified.git | Python | 71 lines
                    
64            (os.path.join('share', package, 'examples'),
                    
65                glob.glob(os.path.join('examples', '*'))),
                    
66            # Manual page
                    
                
manager.py https://github.com/log2timeline/dftimewolf.git | Python | 129 lines
                    
92    """
                    
93    for file_path in glob.glob(os.path.join(path, '*.json')):
                    
94      self.ReadRecipeFromFile(file_path)
                    
                
pyportage.py https://github.com/meeuw/portage-python.git | Python | 137 lines
                    
113        x =           XPAK(ftbz2)
                    
114        for dir in glob.glob('/usr/portage/*-*')+glob.glob('/usr/portage/virtual*'): shutil.rmtree(dir)
                    
115        try:
                    
132
                    
133        for dir in glob.glob('/usr/portage/*-*')+glob.glob('/usr/portage/virtual'): shutil.rmtree(dir)
                    
134        try:
                    
                
tosca.py https://github.com/rusty1s/pytorch_geometric.git | Python | 97 lines
                    
82        for cat in self.categories:
                    
83            paths = glob.glob(osp.join(self.raw_dir, '{}*.tri'.format(cat)))
                    
84            paths = [path[:-4] for path in paths]
                    
                
mouse_and_match.py git://pkgs.fedoraproject.org/opencv | Python | 73 lines
                    
57    '''Loop through all the images in the directory'''
                    
58    for infile in glob.glob( os.path.join(path, '*.*') ):
                    
59        ext = os.path.splitext(infile)[1][1:] #get the filename extenstion
                    
                
test_isoinfo.py https://gitlab.com/libosinfo/osinfo-db | Python | 60 lines
                    
22    ret = []
                    
23    allpaths = glob.glob(os.path.join(isodata_path, "*", "*"))
                    
24    for osdir in sorted(allpaths, key=util.human_sort):
                    
25        osname = os.path.basename(osdir)
                    
26        isodatapaths = glob.glob(os.path.join(osdir, "*.txt"))
                    
27        if len(isodatapaths):
                    
                
checkmate.py https://github.com/vonclites/checkmate.git | Python | 149 lines
                    
96        os.remove(os.path.join(self._save_dir, 'checkpoint'))
                    
97        for ckpt_file in glob.glob(worst_checkpoint + '.*'):
                    
98            os.remove(ckpt_file)
                    
                
distro_stats.py https://github.com/mono/release.git | Python | 107 lines
                    
65
                    
66for i in glob.glob("www_http/url_*.tab") + glob.glob("www_ftp/url_*.tab"):
                    
67	
                    
                
sample-modelnet40.py https://github.com/AlexGeControl/3D-Point-Cloud-Analytics.git | Python | 82 lines
                    
68        pattern = os.path.join(input_dir, '*.off')
                    
69        samples = sample(glob.glob(pattern), arguments.num_per_category)
                    
70        # move the samples into output dir:
                    
                
setup_package.py https://github.com/crawfordsm/astropy.git | Python | 117 lines
                    
16
                    
17SRC_FILES = glob.glob(os.path.join(ERFA_SRC, '*'))
                    
18SRC_FILES += [os.path.join(ERFAPKGDIR, filename)
                    
                
make_data.py https://github.com/will-moore/openmicroscopy.git | Python | 111 lines
                    
95        pat = "%s/ice*%s.jar" % (rep, version)
                    
96        cp = ":".join(glob.glob(pat))
                    
97        javac_cmd = "javac -target 1.7 -cp "
                    
                
sgd.py https://github.com/flypythoncom/cs224n_2019.git | Python | 133 lines
                    
17    st = 0
                    
18    for f in glob.glob("saved_params_*.npy"):
                    
19        iter = int(op.splitext(op.basename(f))[0].split("_")[2])
                    
                
test-lz4-versions.py https://gitlab.com/adam.lukaitis/lz4 | Python | 147 lines
                    
87    os.chdir(tmp_dir)
                    
88    for lz4 in glob.glob("*.lz4"):
                    
89        os.remove(lz4)
                    
96    print('Full list of compressed files')
                    
97    lz4s = sorted(glob.glob('*.lz4'))
                    
98    for lz4 in lz4s:
                    
103    print('Duplicated files')
                    
104    lz4s = sorted(glob.glob('*.lz4'))
                    
105    for i, lz4 in enumerate(lz4s):
                    
116    print('Enumerate only different compressed files')
                    
117    lz4s = sorted(glob.glob('*.lz4'))
                    
118    for lz4 in lz4s:
                    
122    print('Decompression tests and verifications')
                    
123    lz4s = sorted(glob.glob('*.lz4'))
                    
124    for dec in glob.glob("*.dec"):
                    
                
pilfile.py https://bitbucket.org/archerz/python | Python | 95 lines
                    
66            if glob.has_magic(file):
                    
67                out.extend(glob.glob(file))
                    
68            else:
                    
                
monochromatic.py https://github.com/astrofrog/sedfitter.git | Python | 135 lines
                    
50    # Find all SED files to convolve
                    
51    sed_files = sorted(glob.glob(model_dir + '/seds/*.fits.gz') +
                    
52                       glob.glob(model_dir + '/seds/*/*.fits.gz') +
                    
52                       glob.glob(model_dir + '/seds/*/*.fits.gz') +
                    
53                       glob.glob(model_dir + '/seds/*.fits') +
                    
54                       glob.glob(model_dir + '/seds/*/*.fits'))
                    
                
test_sub.py https://github.com/weissms/owb-mirror.git | Python | 79 lines
                    
16    def tearDown(self):
                    
17        for file in glob.glob('planet/tests/data/cache/*'):
                    
18            os.unlink(file)
                    
                
build-win-installer.py https://github.com/blackberry/WebKit-Smartphone.git | Python | 97 lines
                    
79    
                    
80    dlls = glob.glob(os.path.join(wxwebkit_dir, "*.dll"))
                    
81    for dll in dlls:
                    
                
mbinfo_test.py https://github.com/dwcaress/MB-System.git | Python | 92 lines
                    
79  def testJsonOutputStyle(self):
                    
80    for expected_filename in glob.glob('testdata/mb*/*.json'):
                    
81      src_filename = os.path.splitext(expected_filename)[0]
                    
85  def testDefaultOutputStyle(self):
                    
86    for expected_filename in glob.glob('testdata/mb*/*.inf'):
                    
87      src_filename = os.path.splitext(expected_filename)[0]
                    
                
tldr.py https://github.com/bighuggies/Spellathon.git | Python | 131 lines
                    
60    # files to be returned.
                    
61    for t in glob.glob(path + '*.tldr'):
                    
62        name = t.split(os.sep)[-1].split('.')[0]
                    
                
playVideo.py https://gitlab.com/argenos/VirtualBlackboard | Python | 89 lines
                    
12path = 'images/frames/demo_class/'
                    
13length = glob.glob(path+'*.png').__len__()/2
                    
14
                    
                
trim-leaders-fastq.py https://github.com/hyeshik/sars-cov-2-transcriptome.git | Python | 100 lines
                    
67leader_matches = []
                    
68for filename in glob.glob('alignments/VeroInf24h.viral-leader.blast/part-*.bam'):
                    
69    #print(filename)
                    
                
config_parser.py https://github.com/svpcom/wifibroadcast.git | Python | 116 lines
                    
77    for g in cfg_patterns:
                    
78        for f in (glob.glob(os.path.join(basedir, g)) if isinstance(g, str) else [g]):
                    
79            fd = open(f) if isinstance(f, str) else f
                    
                
 

Source

Language