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

« back to all changes in this revision

Viewing changes to bin/ivle-buildjail

  • Committer: William Grant
  • Date: 2009-04-23 01:21:07 UTC
  • Revision ID: grantw@unimelb.edu.au-20090423012107-0yydrufmz8nakx1c
ivle-buildjail now copies the currently running 'ivle' package into the jail.

Previously it used ivle.conf.python_site_packages to work out what to copy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
 
111
111
    # Also copy the IVLE lib directory into the jail
112
112
    # This is necessary for running certain services
113
 
    ivle_site_packages = os.path.join(ivle.conf.python_site_packages, 'ivle')
 
113
    ivle_site_packages = os.path.join(os.path.dirname(ivle.__file__))
114
114
    jail_site_packages = os.path.join(build_path, ivle_site_packages[1:])
115
115
    if os.path.exists(jail_site_packages):
116
116
        shutil.rmtree(jail_site_packages)