[gnome-music/wip/merge: 84/343] Run as py3 only



commit fc34bfa477ad2af414049f07c1d7e591c2d7edc3
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Jul 15 01:30:51 2013 +0200

    Run as py3 only

 .travis.yml    |    2 --
 gnome-music.in |    5 ++++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/.travis.yml b/.travis.yml
index e9dc05d..edcd815 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,5 @@
 language: python
 python:
-  - "2.6"
-  - "2.7"
   - "3.2"
   - "3.3"
 install:
diff --git a/gnome-music.in b/gnome-music.in
index 90af326..82e1435 100644
--- a/gnome-music.in
+++ b/gnome-music.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 import signal
@@ -8,6 +8,9 @@ sys.path.insert(1, '@pythondir@')
 from gnomemusic.application import Application
 
 if __name__ == "__main__":
+    from gi.repository import GIRepository
+    GIRepository.Repository.prepend_search_path('@libdir@/gnome-music/girepository-1.0')
+
     resource = Gio.resource_load("data/gnome-music.gresource")
     Gio.Resource._register(resource)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]