MCPcopy Create free account
hub / github.com/PyWavelets/pywt / _minimal_ext_cmd

Function _minimal_ext_cmd

util/version_utils.py:62–75  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

60# Return the git revision as a string
61def git_version(cwd):
62 def _minimal_ext_cmd(cmd):
63 # construct minimal environment
64 env = {}
65 for k in ['SYSTEMROOT', 'PATH']:
66 v = os.environ.get(k)
67 if v is not None:
68 env[k] = v
69 # LANGUAGE is used on win32
70 env['LANGUAGE'] = 'C'
71 env['LANG'] = 'C'
72 env['LC_ALL'] = 'C'
73 out = subprocess.Popen(cmd, stdout=subprocess.PIPE,
74 env=env, cwd=cwd).communicate()[0]
75 return out
76
77 try:
78 git_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))

Callers 1

git_versionFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected