diff --git a/gitlab/update_feedstock.py b/gitlab/update_feedstock.py
index a0c1df579858dcae6ab0521d0a8ebc2d08ebfeae..132218d9d5d041ab4312539661d6e6070fb4cf21 100755
--- a/gitlab/update_feedstock.py
+++ b/gitlab/update_feedstock.py
@@ -132,7 +132,10 @@ def main(package, direct_push=False):
     with open('recipe/meta.yaml', 'w') as f:
       f.write(doc)
 
-    run_commands(['conda-smithy', 'rerender'],
+    conda_smithy_path = os.getenv('CONDA_FOLDER', '')
+    if conda_smithy_path:
+        conda_smithy_path = conda_smithy_path + os.sep
+    run_commands([conda_smithy_path+'conda-smithy', 'rerender'],
                  ['git', '--no-pager', 'diff'],
                  ['git', 'add', '-A'])
     try: