diff --git a/documentation/conf.py b/documentation/conf.py
index 7c7f2a7d12257c3cb08141a564d9c42c75d22125..d3cac62ee2fadec27c82788bbb682b9f2f64de7e 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -1,7 +1,7 @@
 import sys
 import subprocess, os
 
-def configureDoxyfile(template_file, output_file):
+def configureDoxyfile(template_file, output_file, input_dir, output_dir):
     with open(template_file, 'r') as file :
         filedata = file.read()
 
@@ -16,7 +16,7 @@ read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
 
 
 if read_the_docs_build:
-    configureDoxyfile("Doxyfile.in", "Doxyfile")
+    configureDoxyfile("Doxyfile.in", "Doxyfile", "../", "_build/workdir/doxygen")
     subprocess.call('mkdir -p _build/workdir/doxygen; doxygen Doxyfile', shell=True)
     html_extra_path = ['_build/workdir/']