diff --git a/buildVersion.py b/buildVersion.py
index 27d0ba14b1aed82ee090b9fb2320b9dd9629fc8b..21c1bc3e6a135ba3e32f74104ac310d65f3f3da6 100755
--- a/buildVersion.py
+++ b/buildVersion.py
@@ -76,6 +76,10 @@ def epydoc():
     The HTML files are located in static/plugin_dbui/docs/
     
     """
+    # create the directory
+    if not os.path.exists(HTMLDOC):
+        os.makedirs(HTMLDOC)
+        
     # clean the directory
     for el in os.listdir(HTMLDOC):
         os.remove(os.path.join(HTMLDOC, el))