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

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: stevenbird
  • Date: 2008-01-24 04:23:25 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:282
* changed spelling of varible to variable
* example hello world test cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
        jail_base = confmodule.jail_base
150
150
    except:
151
151
        jail_base = "/home/informatics/jails"
152
 
    try:
153
 
        subjects_base = confmodule.subjects_base
154
 
    except:
155
 
        subjects_base = "/home/informatics/subjects"
156
152
except ImportError:
157
153
    # Just set reasonable defaults
158
154
    root_dir = "/ivle"
159
155
    ivle_install_dir = "/opt/ivle"
160
156
    public_host = "public.localhost"
161
157
    jail_base = "/home/informatics/jails"
162
 
    subjects_base = "/home/informatics/subjects"
163
158
# Always defaults
164
159
allowed_uids = "0"
165
160
 
274
269
    --ivle_install_dir
275
270
    --public_host
276
271
    --jail_base
277
 
    --subjects_base
278
272
    --allowed_uids
279
273
As explained in the interactive prompt or conf.py.
280
274
"""
388
382
        file.write(']\n')
389
383
 
390
384
def conf(args):
391
 
    global root_dir, ivle_install_dir, jail_base, subjects_base
392
 
    global public_host, allowed_uids
 
385
    global root_dir, ivle_install_dir, jail_base, public_host, allowed_uids
393
386
    # Set up some variables
394
387
 
395
388
    cwd = os.getcwd()
430
423
        jail_base = query_user(jail_base,
431
424
        """Root directory where the jails (containing user files) are stored
432
425
(on the local file system):""")
433
 
        subjects_base = query_user(subjects_base,
434
 
        """Root directory where the subject directories (containing worksheets
435
 
and other per-subject files) are stored (on the local file system):""")
436
426
        public_host = query_user(public_host,
437
427
        """Hostname which will cause the server to go into "public mode",
438
428
providing login-free access to student's published work:""")
451
441
            ivle_install_dir = opts['--ivle_install_dir']
452
442
        if '--jail_base' in opts:
453
443
            jail_base = opts['--jail_base']
454
 
        if '--subjects_base' in opts:
455
 
            jail_base = opts['--subjects_base']
456
444
        if '--public_host' in opts:
457
445
            public_host = opts['--public_host']
458
446
        if '--allowed_uids' in opts:
498
486
# The user jails are expected to be located immediately in subdirectories of
499
487
# this location.
500
488
jail_base = "%s"
501
 
 
502
 
# In the local file system, where are the per-subject file spaces located.
503
 
# The individual subject directories are expected to be located immediately
504
 
# in subdirectories of this location.
505
 
subjects_base = "%s"
506
 
""" % (root_dir, ivle_install_dir, public_host, jail_base, subjects_base))
 
489
""" % (root_dir, ivle_install_dir, public_host, jail_base))
507
490
 
508
491
        conf.close()
509
492
    except IOError, (errno, strerror):