--- a/build.py
+++ b/build.py
@@ -27,7 +27,10 @@ import tarfile
 import tempfile
 import datetime
 
-import pathlib2
+try:
+    import pathlib2
+except:
+    import pathlib as pathlib2
 
 from distutils.dep_util import newer, newer_group
 from buildtools.config  import Config, msg, opj, posixjoin, loadETG, etg2sip, findCmd, \
