def has_magic(s):
return magic_check.search(s) is not None
def do_command(argv):
newargv = argv[:1]
for arg in argv[1:]:
if glob.has_magic(arg):
newargv.extend(glob.glob(arg))
else:
newargv.append(arg)
src/p/y/pycopia-HEAD/CLI/pycopia/CLI.py pycopia(Download)
def globargv(argv):
if len(argv) > 2:
import glob
l = []
map(lambda gl: l.extend(gl), map(lambda arg: glob.has_magic(arg) and glob.glob(arg) or [arg], argv[2:]))
argv = argv[0:2] + l
return argv[1:]
src/e/p/epydoc-HEAD/epydoc/src/epydoc/gui.py epydoc(Download)
def _entry_module(self, *e):
modules = [self._module_entry.get()]
if glob.has_magic(modules[0]):
modules = glob.glob(modules[0])
for name in modules:
self.add_module(name, check=1)
self._module_entry.delete(0, 'end')
src/q/t/qtaste-HEAD/trunk/tools/jython/lib/Lib/pythondoc.py qtaste(Download)
if not this_prefix:
this_prefix = os.path.basename(filename)
else:
if sys.platform == "win32" and glob.has_magic(filename):
files = glob.glob(filename)
else:
files = [filename]
src/e/p/epydoc-HEAD/src/epydoc/gui.py epydoc(Download)
def _entry_module(self, *e):
modules = [self._module_entry.get()]
if glob.has_magic(modules[0]):
modules = glob.glob(modules[0])
for name in modules:
self.add_module(name, check=1)
self._module_entry.delete(0, 'end')
src/q/t/qtaste-HEAD/tools/jython/lib/Lib/pythondoc.py qtaste(Download)
if not this_prefix:
this_prefix = os.path.basename(filename)
else:
if sys.platform == "win32" and glob.has_magic(filename):
files = glob.glob(filename)
else:
files = [filename]
src/o/p/openerp-server-5.0.0-3/bin/addons/document/ftpserver/ftpserver.py openerp-server(Download)
argument.
"""
ftppath = self.ftpnorm(rawline)
if not glob.has_magic(ftppath):
return self.get_list_dir(self.ftp2fs(rawline))
else:
basedir, basename = os.path.split(ftppath)
if glob.has_magic(basedir):
src/o/p/openerp-server-5.0.0-3/bin/addons/document/ftpserver/abstracted_fs.py openerp-server(Download)
argument.
"""
ftppath = self.ftpnorm(rawline)
if not glob.has_magic(ftppath):
return self.get_list_dir(self.ftp2fs(rawline, datacr))
else:
basedir, basename = os.path.split(ftppath)
if glob.has_magic(basedir):
src/p/y/pycopia-fepy-1.0/pycopia/fepy/CLI.py pycopia-fepy(Download)
def globargv(argv):
if len(argv) > 2:
import glob
l = []
map(lambda gl: l.extend(gl), map(lambda arg: glob.has_magic(arg) and glob.glob(arg) or [arg], argv[2:]))
argv = argv[0:2] + l
return argv[1:]
src/p/y/pycopia-CLI-1.0/pycopia/CLI.py pycopia-CLI(Download)
def globargv(argv):
if len(argv) > 2:
import glob
l = []
map(lambda gl: l.extend(gl), map(lambda arg: glob.has_magic(arg) and glob.glob(arg) or [arg], argv[2:]))
argv = argv[0:2] + l
return argv[1:]
1 | 2 Next