~josephjamesmills/+junk/scope-youtube

« back to all changes in this revision

Viewing changes to debian/scope-youtube/usr/share/unity-scope-youtube/com.py

  • Committer: Joseph Mills
  • Date: 2012-05-23 05:36:43 UTC
  • Revision ID: josephjamesmills@gmail.com-20120523053643-mtbblru1s14hv1wh
Fixed up dbus path and added right directorys to push to in intinal make.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/python
2
 
# -*- coding: iso-8859-1 -*-
3
 
#
4
 
#
5
 
# com.py
6
 
#
7
 
# Copyright (C) 2010,2011
8
 
# Lorenzo Carbonell Cerezo <lorenzo.carbonell.cerezo@gmail.com>
9
 
# Miguel Angel Santamaría Rogado <leibag@gmail.com>
10
 
#
11
 
# This program is free software: you can redistribute it and/or modify
12
 
# it under the terms of the GNU General Public License as published by
13
 
# the Free Software Foundation, either version 3 of the License, or
14
 
# (at your option) any later version.
15
 
#
16
 
# This program is distributed in the hope that it will be useful,
17
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 
# GNU General Public License for more details.
20
 
#
21
 
# You should have received a copy of the GNU General Public License
22
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23
 
#
24
 
#
25
 
#
26
 
 
27
 
import os
28
 
 
29
 
######################################
30
 
 
31
 
def is_package():
32
 
    return __file__.find('src') < 0
33
 
 
34
 
######################################
35
 
 
36
 
 
37
 
VERSION = '0.0.0.1'
38
 
APPNAME = 'Scope-YouTube'
39
 
APP = 'scope-youtube'
40
 
 
41
 
# check if running from source
42
 
if is_package():
43
 
    ROOTDIR = '/usr/share/'
44
 
    LANGDIR = os.path.join(ROOTDIR, 'locale-langpack')
45
 
    APPDIR = os.path.join(ROOTDIR, APP)
46
 
    
47
 
else:
48
 
    VERSION = VERSION + '-src'
49
 
    ROOTDIR = os.path.dirname(__file__)
50
 
    LANGDIR = os.path.normpath(os.path.join(ROOTDIR, '../template1'))
51
 
    APPDIR = ROOTDIR
52
 
 
53
 
KEY = 'apps.scopes.scope-youtube'
54
 
ICON = '/usr/share/unity/lenses/lens-video/videos-youtube.svg'