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

« back to all changes in this revision

Viewing changes to setup/ivle-config

setup: Removed 'config' mode. It's now standalone.
setup.configure: Renamed to setup/ivle-config.
    Made executable and standalone Python script (with a Main function).

You now run ./setup/ivle-config as a standalone script, not 'setup.py config'.
This will eventually get moved out but can't right now due to having to
generate the Trampoline conf.h file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
1
2
# IVLE - Informatics Virtual Learning Environment
2
3
# Copyright (C) 2007-2009 The University of Melbourne
3
4
#
15
16
# along with this program; if not, write to the Free Software
16
17
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
18
 
18
 
# Module: setup/config
19
19
# Author: Matt Giuca, Refactored by David Coles
20
 
# Date:   03/07/2008
21
20
 
22
21
'''Configures IVLE with machine-specific details, most notably, various paths.
23
22
Either prompts the administrator for these details or accepts them as
252
251
    return val
253
252
 
254
253
def configure(args):
255
 
    # Call the real function
256
 
    return __configure(args)
257
 
 
258
 
def __configure(args):
259
254
    # Try importing existing conf, but if we can't just set up defaults
260
255
    # The reason for this is that these settings are used by other phases
261
256
    # of setup besides conf, so we need to know them.
471
466
    print
472
467
    
473
468
    return 0
 
469
 
 
470
def main(argv=None):
 
471
    if argv is None:
 
472
        argv = sys.argv
 
473
 
 
474
    # Print the opening spiel including the GPL notice
 
475
 
 
476
    print """IVLE - Informatics Virtual Learning Environment Setup
 
477
Copyright (C) 2007-2009 The University of Melbourne
 
478
IVLE comes with ABSOLUTELY NO WARRANTY.
 
479
This is free software, and you are welcome to redistribute it
 
480
under certain conditions. See LICENSE.txt for details.
 
481
 
 
482
IVLE Configuration
 
483
"""
 
484
 
 
485
    return configure(argv[1:])
 
486
 
 
487
if __name__ == "__main__":
 
488
    sys.exit(main())