Skip to content

Commit 57e139e

Browse files
committed
Remove web/app_*.php files (TEMPORARY: except app_debug.php)
1 parent 5448f59 commit 57e139e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/compiler.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from log import Logger
22
from datetime import datetime
3-
import os, errno, shutil, subprocess, urllib, tarfile, sys, re, tempfile
3+
import os, errno, shutil, subprocess, urllib, tarfile, sys, re, tempfile, glob
44

55
def singleton(cls):
66
"""Return a singleton of the class
@@ -353,6 +353,13 @@ def install_application(self):
353353
proc = subprocess.Popen(['php', 'www/app/console', 'assetic:dump', '--no-debug', '--env='+self._bp.sf_env], env=myenv)
354354
proc.wait()
355355

356+
self.logger.log('Remove app_*.php files')
357+
for filename in glob.glob('www/web/app_*.php') :
358+
#FIXME temporary omission to keep app_debg.php (activated profiler)
359+
if (filename != 'www/web/app_debug.php'):
360+
os.remove(filename)
361+
362+
356363
self.logger.decrease_indentation()
357364
self.logger.decrease_indentation()
358365

0 commit comments

Comments
 (0)