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

« back to all changes in this revision

Viewing changes to www/apps/tutorial/__init__.py

  • Committer: mattgiuca
  • Date: 2008-02-04 00:10:25 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:395
Tutorial: split subjects directory into subjects and problems.
    Subjects now contains only subject XML and worksheet XML files.
    Problems are in a separate directory hierarchy.
Setup / Conf: Added new option "problems_base". This is used by tutorial to
    find the problem sheets.
In sample, moved problems to a "problems" directory. Setup installer correctly
    installs all the problems in this directory to the correct sample place.

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
    if problemsrc.startswith("..") or problemsrc.startswith(os.sep):
250
250
        problemfile = None
251
251
    else:
252
 
        problemfile = os.path.join(conf.subjects_base, problemsrc)
 
252
        problemfile = os.path.join(conf.problems_base, problemsrc)
253
253
 
254
254
    try:
255
255
        problemfile = open(problemfile)