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

« back to all changes in this revision

Viewing changes to bin/ivle-createdatadirs

  • Committer: Nick Chadwick
  • Date: 2009-02-25 16:39:59 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090225163959-3hsedlesu2pjm12e
Added a few extra files. I'm not sure if they're necessary, and I don't
have time to find out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import os
24
24
import sys
25
 
import logging
26
25
 
27
26
import ivle.conf
28
27
 
29
 
logging.basicConfig(
30
 
    format='%(asctime)s %(levelname)s %(message)s',
31
 
    level=logging.INFO)
32
 
 
33
28
if os.path.exists(ivle.conf.data_path):
34
 
    logging.info('%s already exists - not doing anything' % ivle.conf.data_path)
35
 
    sys.exit(0)
 
29
    sys.exit('%s already exists - not doing anything' % ivle.conf.data_path)
36
30
 
37
31
os.makedirs(ivle.conf.jail_base)
38
32
os.makedirs(ivle.conf.jail_src_base)