summaryrefslogtreecommitdiffhomepage
path: root/registry/generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'registry/generator.py')
-rw-r--r--registry/generator.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/registry/generator.py b/registry/generator.py
index ba21e5d..f62b71f 100644
--- a/registry/generator.py
+++ b/registry/generator.py
@@ -21,7 +21,10 @@ import os
import re
import pdb
import sys
-from pathlib import Path
+try:
+ from pathlib import Path
+except ImportError:
+ from pathlib2 import Path
def write( *args, **kwargs ):
file = kwargs.pop('file',sys.stdout)