26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
import gzip
import platform
import re
import zipfile
import inspect
import pkgutil
# export symbols
__all__ = ["conf", "__print__", "dbg", "plugin_meta", "module_list", "get_data"]
#-- create a stub instance of config object
conf = object()
# separate instance of netrc, if needed
netrc = None
|
>
>
>
>
>
>
>
>
|
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
import gzip
import platform
import re
import zipfile
import inspect
import pkgutil
# find_executable() is only needed by channels/configwin
try:
from distutils.spawn import find_executable
except:
def find_executable(bin):
exists = [os.path.exists(dir+"/"+bin) for dir in os.environ.get("PATH").split(":")+["/"]]
return exists[0] if len(exists) else None
# export symbols
__all__ = ["conf", "__print__", "dbg", "plugin_meta", "module_list", "get_data", "find_executable"]
#-- create a stub instance of config object
conf = object()
# separate instance of netrc, if needed
netrc = None
|