~ubuntu-branches/ubuntu/utopic/gozerbot/utopic

« back to all changes in this revision

Viewing changes to bin/gozerinit

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Malcolm
  • Date: 2009-09-14 09:00:29 UTC
  • mfrom: (1.1.4 upstream) (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090914090029-uval0ekt72kmklxw
Tags: 0.9.1.3-3
Changed dependency on python-setuptools to python-pkg-resources
(Closes: #546435) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
#
3
 
#
4
 
 
5
 
import sys, os
6
 
sys.path.insert(0, os.getcwd())
7
 
 
8
 
try:
9
 
    from gozerbot.datadir import makedirs
10
 
    makedirs()
11
 
    from gozerbot.config import writeconfig
12
 
    writeconfig()
13
 
except Exception, ex:
14
 
    print ex
15
 
    os._exit(1)
16
 
 
17
 
os._exit(0)