Browse Source

Fixes zend framework 1 https://github.com/TechEmpower/FrameworkBenchmarks/pull/874#discussion_r16033682

Gerard Roche 10 years ago
parent
commit
8518a52f8f
1 changed files with 1 additions and 4 deletions
  1. 1 4
      frameworks/PHP/php-zend-framework1/setup.py

+ 1 - 4
frameworks/PHP/php-zend-framework1/setup.py

@@ -1,13 +1,10 @@
 import subprocess
 import sys
 import setup_util
-from os.path import expanduser
-
-home = expanduser("~")
 
 def start(args, logfile, errfile):
   setup_util.replace_text("php-zend-framework1/application/configs/application.ini", "host = \"localhost\"", "host = \"" + args.database_host + "\"")
-  setup_util.replace_text("php-zend-framework1/deploy/nginx.conf", "root .*\/FrameworkBenchmarks", "root " + home + "/FrameworkBenchmarks")
+  setup_util.replace_text("php-zend-framework1/deploy/nginx.conf", "root .*\/FrameworkBenchmarks/php-zend-framework1", "root " + args.troot)
 
   try:
     subprocess.check_call("composer.phar install", shell=True, cwd="php-zend-framework1", stderr=errfile, stdout=logfile)