comparison env/lib/python3.9/site-packages/planemo/glob.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 from __future__ import absolute_import
2 from __future__ import print_function
3
4 NO_GLOB_2 = "glob2 library unavailabile, please install with pip install glob2."
5
6 try:
7 from glob2 import glob as _glob
8 except ImportError:
9 _glob = None
10
11
12 def glob(*args, **kwds):
13 if _glob is None:
14 raise Exception(NO_GLOB_2)
15 return _glob(*args, **kwds)
16
17
18 __all__ = (
19 "glob",
20 )