From 4fc97e76a93d1bcdb7bb72e11864b50c2abd1286 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Fri, 21 Sep 2012 14:29:12 +0200
Subject: [PATCH] Import errno before comparision

---
 flandmark/script/annotate.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flandmark/script/annotate.py b/flandmark/script/annotate.py
index c39ba75..c565189 100644
--- a/flandmark/script/annotate.py
+++ b/flandmark/script/annotate.py
@@ -97,6 +97,7 @@ def main():
       try:
         os.makedirs(dirname)
       except OSError as exc:
+        import errno
         if exc.errno == errno.EEXIST: pass
         else: raise
 
-- 
GitLab