~ubuntu-branches/ubuntu/lucid/bleachbit/lucid

« back to all changes in this revision

Viewing changes to bleachbit.py

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2009-10-22 21:49:11 UTC
  • mfrom: (1.1.12 upstream) (0.6.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091022214911-splx3epgkuhr48jb
Tags: 0.7.0-1
* New upstream release.
* debian/patches/GUI_relative_imports.patch:
  - Refreshed for new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# vim: ts=4:sw=4:expandtab
3
 
 
4
 
## BleachBit
5
 
## Copyright (C) 2009 Andrew Ziem
6
 
## http://bleachbit.sourceforge.net
7
 
##
8
 
## This program is free software: you can redistribute it and/or modify
9
 
## it under the terms of the GNU General Public License as published by
10
 
## the Free Software Foundation, either version 3 of the License, or
11
 
## (at your option) any later version.
12
 
## 
13
 
## This program is distributed in the hope that it will be useful,
14
 
## but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
## GNU General Public License for more details.
17
 
## 
18
 
## You should have received a copy of the GNU General Public License
19
 
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 
 
21
 
 
22
 
"""
23
 
Launcher
24
 
"""
25
 
 
26
 
import bleachbit.GUI
27
 
import gtk
28
 
 
29
 
gui = bleachbit.GUI.GUI()
30
 
gtk.main()
 
1
#!/usr/bin/env python
 
2
# vim: ts=4:sw=4:expandtab
 
3
 
 
4
## BleachBit
 
5
## Copyright (C) 2009 Andrew Ziem
 
6
## http://bleachbit.sourceforge.net
 
7
##
 
8
## This program is free software: you can redistribute it and/or modify
 
9
## it under the terms of the GNU General Public License as published by
 
10
## the Free Software Foundation, either version 3 of the License, or
 
11
## (at your option) any later version.
 
12
## 
 
13
## This program is distributed in the hope that it will be useful,
 
14
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
## GNU General Public License for more details.
 
17
## 
 
18
## You should have received a copy of the GNU General Public License
 
19
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 
 
21
 
 
22
 
 
23
"""
 
24
Launcher
 
25
"""
 
26
 
 
27
 
 
28
 
 
29
import os
 
30
import sys
 
31
 
 
32
if 'posix' == os.name and os.path.isdir('/usr/share/bleachbit'):
 
33
    # This path contains bleachbit/{C,G}LI.py .  This section is
 
34
    # unnecessary if installing BleachBit in site-packages.
 
35
    sys.path.append('/usr/share/')
 
36
 
 
37
 
 
38
 
 
39
 
 
40
if 1 == len(sys.argv):
 
41
    import gtk
 
42
    import bleachbit.GUI
 
43
    gui = bleachbit.GUI.GUI()
 
44
    gtk.main()
 
45
else:
 
46
    import bleachbit.CLI
 
47
    bleachbit.CLI.process_cmd_line()
 
48