[pyramid/misc] remove useless variable
authorLaurent Peuch <cortex@worlddomination.be>
Wed, 15 May 2019 12:06:15 +0200
changeset 12601 f28a19408d3d
parent 12600 0f33639d305b
child 12602 2beda828c1bf
[pyramid/misc] remove useless variable
cubicweb/pyramid/pyramidctl.py
--- a/cubicweb/pyramid/pyramidctl.py	Wed May 15 12:05:52 2019 +0200
+++ b/cubicweb/pyramid/pyramidctl.py	Wed May 15 12:06:15 2019 +0200
@@ -55,13 +55,12 @@
 def _generate_pyramid_ini_file(pyramid_ini_path):
     """Write a 'development.ini' file into apphome."""
     template_fpath = os.path.join(os.path.dirname(__file__), 'pyramid.ini.tmpl')
-    target_fpath = os.path.join(pyramid_ini_path)
     context = {
         'secret_1': get_random_secret_key(),
         'secret_2': get_random_secret_key(),
         'secret_3': get_random_secret_key(),
     }
-    fill_templated_file(template_fpath, target_fpath, context)
+    fill_templated_file(template_fpath, pyramid_ini_path, context)
 
 
 class PyramidCreateHandler(serverctl.RepositoryCreateHandler,