diff --git a/gstlal-ugly/bin/gstlal_inspiral_metric_overlap_dag b/gstlal-ugly/bin/gstlal_inspiral_metric_overlap_dag
index 71c525211513461d3a978b2391c8409010e78e89..02cb4c98e32726b8e7619d870bed4ce91a473a18 100755
--- a/gstlal-ugly/bin/gstlal_inspiral_metric_overlap_dag
+++ b/gstlal-ugly/bin/gstlal_inspiral_metric_overlap_dag
@@ -1,5 +1,5 @@
 #!/usr/bin/python
-import sys
+import sys, os
 from ligo.lw import ligolw
 from ligo.lw import utils as ligolw_utils
 from ligo.lw import lsctables