~usb-creator-hackers/usb-creator/trunk

« back to all changes in this revision

Viewing changes to tools/pypack/pypack

  • Committer: Evan Dandrea
  • Date: 2009-07-23 13:58:53 UTC
  • mto: This revision was merged to the branch mainline in revision 133.
  • Revision ID: evan.dandrea@canonical.com-20090723135853-zjeg9r22xyuk1kz8
Support for building a Windows executable.  Run make build_windows or make test_windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
#    Mondrian - multiple apps in one window
 
3
#    Copyright (C) 2006-2008  cmsj@tenshu.net
 
4
#
 
5
#    This program is free software; you can redistribute it and/or modify
 
6
#    it under the terms of the GNU General Public License as published by
 
7
#    the Free Software Foundation, version 2 only.
 
8
#
 
9
#    This program is distributed in the hope that it will be useful,
 
10
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
#    GNU General Public License for more details.
 
13
#
 
14
#    You should have received a copy of the GNU General Public License
 
15
#    along with this program; if not, write to the Free Software
 
16
#    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
 
17
#    USA
 
18
 
 
19
import sys
 
20
import os
 
21
root_dir = os.path.abspath(os.path.dirname(__file__))
 
22
lib_dir = os.path.join(root_dir, 'lib')
 
23
sys.path.insert(0, lib_dir)
 
24
 
 
25
from libpypack.application import Application
 
26
pypack = Application(root_dir)
 
27
pypack.run()