Commit 6a19cf0d authored by Patrik Dufresne's avatar Patrik Dufresne

Support python3

parent cc634861
......@@ -70,7 +70,7 @@ class Wd(object):
def get_version(self, **kw):
__tracebackhide__ = True
version_sh = pkg_resources.resource_filename('maven_scm_version', '../version.sh') # @UndefinedVariable
version = subprocess.check_output(version_sh, shell=True, cwd=str(self.cwd), **kw).strip('\n')
version = subprocess.check_output(version_sh, shell=True, cwd=self.cwd, **kw).decode('utf-8').strip('\n')
print(version)
return version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment