~ubuntu-branches/ubuntu/quantal/jokosher/quantal

« back to all changes in this revision

Viewing changes to Jokosher/Jokosher

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna, Luca Falavigna, Piotr Ożarowski
  • Date: 2009-05-12 00:37:15 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090512003715-3hp2ycoqjlzwfnlv
Tags: 0.11.2-1
[ Luca Falavigna ]
* New upstream release (Closes: #517234).
  - Jokosher now appears under Sound & Video (Closes: #443788).
* New Maintainer (Closes: #523167).
* Add Python Applications Packaging Team to Uploaders.
* Add Vcs-* fields in source stanza.
* Adjust copyright informations:
  - Refresh upstream authors and copyright holders.
  - Link to /usr/share/common-licenses/GPL-2.
  - Adjust copyright holders for Debian packaging.
  - Replace (c) with ©.
* Apply changes from Ubuntu by Daniel Holbach (thanks!):
  - Drop scrollkeeper from Build-Depends.
  - Drop useless dependencies: python-alsaaudio, gstreamer0.10-gnomevfs,
    librsvg2-common, python-gnome2.
  - Bump gstreamer0.10-plugins-good requirement to >= 0.10.9.
  - Drop debian/jokosher.sh, useless.
  - Provide debian/watch file.
* Switch to debhelper 7.
* Install Jokosher module in private directory.
* Unpack egg files to let python-support handle them.
* Drop python-dev from Build-Depends, use python (>= 2.4) instead.
* Depend on python-gobject.
* Switch dependency from python-setuptools to python-pkg-resources
  because of package rename (Closes: #468728).
* debian/patches/10_update_mime_database.dpatch:
  - Refresh for new upstream release.
* debian/patches/20_LevelList_IOError.dpatch:
  - Fix IOError exception trying to add an audio file to a project.
* debian/patches/30_desktop_file.dpatch:
  - Adhere to Freedesktop.org standards by removing deprecated entries.
* debian/patches/50_CreateNewProject_return.dpatch:
  - Return class while creating a new project.
* Provide a simple man page for jokosher.
* Bump Standards-Version to 3.8.1:
  - Provide Homepage field in source stanza.
  - Provide debian/README.source to document dpatch usage.

[ Piotr Ożarowski ]
* Add 40_load_extensions_from_unpacked_eggs patch so that extensions in
  unzipped Eggs are recognized as well

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
                try:
25
25
                        #this is equivalent to "import Globals", but with a variable in
26
26
                        #place of "Globals"
27
 
                        globals()[importName] = __import__(importName)
 
27
                        module = __import__(importName)
 
28
                        globals()[importName] = module
 
29
                        sys.modules["Jokosher." + importName] = module
28
30
                
29
31
                except Exception, e:
30
32
                        print "Error loading Jokosher: %s" % e
35
37
                        if not ourpath in sys.path:
36
38
                                #make sure Jokosher.Extension is in the python path, so extensions can import it.
37
39
                                #ourpath is something like .../jokosher/JonoEdit/trunk/Jokosher
38
 
                                sys.path.append(ourpath)
 
40
                                sys.path.insert(0, ourpath)
39
41
        else:
40
42
                print "Cannot find local file %s.py." % importName
41
43
                sys.exit()
48
50
import locale, gettext
49
51
_ = gettext.gettext
50
52
 
 
53
# enable path to dump dot files
 
54
# this *must* be done before 'import gst' because it reads the env var on startup.
 
55
os.environ.setdefault("GST_DEBUG_DUMP_DOT_DIR", Globals.JOKOSHER_DATA_HOME)
 
56
 
51
57
try:
52
58
        locale.setlocale(locale.LC_ALL, '')
53
59
        gettext.bindtextdomain(Globals.LOCALE_APP, Globals.LOCALE_PATH)
54
60
        gettext.bind_textdomain_codeset(Globals.LOCALE_APP, "UTF-8")
55
61
        gettext.textdomain(Globals.LOCALE_APP)
 
62
        gettext.install(Globals.LOCALE_APP)
56
63
except locale.Error:
57
64
        print "Locale unsupported, defaulting to english for all Jokosher specific text."
58
65
        
60
67
openproject = None
61
68
loadExtensions = True
62
69
 
63
 
parser = optparse.OptionParser(usage="%prog [options] [project-file]", version="0.9")
 
70
parser = optparse.OptionParser(usage="%prog [options] [project-file]", version="0.11.2")
64
71
#command line options
65
72
parser.add_option("-d", "--debug", action="store_true", dest="debug", 
66
73
                                help=_("Print debug output to stdout"))
101
108
localFileImport("JokosherApp")
102
109
#Launching the program
103
110
JokosherApp.MainApp(openproject, loadExtensions, startupType)
 
111
JokosherApp.gobject.threads_init()
104
112
JokosherApp.gtk.main()