~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to setup/configure.py

setup.configure: There were a bunch of variables all called 'conf' which were
    conflicting with my shiny new one.
    Renamed them to 'conf_h' and 'conf_php' as appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
 
358
358
    # Write bin/trampoline/conf.h
359
359
 
360
 
    conf = open(conf_hfile, "w")
 
360
    conf_h = open(conf_hfile, "w")
361
361
 
362
362
    # XXX Compute jail_base, jail_src_base and jail_system. These will
363
363
    # ALSO be done by the boilerplate code, but we need them here in order
366
366
    jail_src_base = os.path.join(conf_options['paths/data'], 'jails')
367
367
    jail_system = os.path.join(jail_src_base, '__base__')
368
368
 
369
 
    conf.write("""/* IVLE Configuration File
 
369
    conf_h.write("""/* IVLE Configuration File
370
370
 * conf.h
371
371
 * Administrator settings required by trampoline.
372
372
 * Note: trampoline will have to be rebuilt in order for changes to this file
394
394
    # However they should be the same with the exception of the outer
395
395
    # characters, which are stripped off and replaced
396
396
 
397
 
    conf.close()
 
397
    conf_h.close()
398
398
 
399
399
    print "Successfully wrote %s" % conf_hfile
400
400
 
401
401
    # Write www/php/phpBB3/config.php
402
402
 
403
 
    conf = open(phpBBconffile, "w")
 
403
    conf_php = open(phpBBconffile, "w")
404
404
    
405
405
    # php-pg work around
406
406
    if conf_options['database/host'] == 'localhost':
408
408
    else:
409
409
        forumdb_host = conf_options['database/host']
410
410
 
411
 
    conf.write( """<?php
 
411
    conf_php.write( """<?php
412
412
// phpBB 3.0.x auto-generated configuration file
413
413
// Do not change anything in this file!
414
414
$dbms = 'postgres';
428
428
$forum_secret = '""" + forum_secret +"""';
429
429
?>"""   )
430
430
    
431
 
    conf.close()
 
431
    conf_php.close()
432
432
 
433
433
    print "Successfully wrote %s" % phpBBconffile
434
434