~ubuntu-branches/ubuntu/trusty/pitivi/trusty

« back to all changes in this revision

Viewing changes to pitivi/configure.py

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2007-01-31 15:32:37 UTC
  • mto: (3.2.1 hardy) (1.2.1 upstream) (6.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20070131153237-de4p8lipjv8x5x3b
Tags: upstream-0.10.2
ImportĀ upstreamĀ versionĀ 0.10.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# License along with this program; if not, write to the
19
19
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
20
# Boston, MA 02111-1307, USA.
 
21
"""
 
22
Utilities for getting the location of various directories.
 
23
Enables identical use for installed and uninstalled versions.
 
24
"""
21
25
 
22
26
import os.path
23
27
import string
25
29
LIBDIR = '/usr/lib'
26
30
PKGDATADIR = '/usr/share/pitivi'
27
31
PIXMAPDIR = '/usr/share/pixmaps'
28
 
pitivi_version = '0.10.1'
 
32
pitivi_version = '0.10.2'
29
33
APPNAME = 'PiTiVi'
30
34
 
31
35
def get_pixmap_dir():
32
36
    """ Returns the directory for program-only pixmaps """
33
37
    dir = os.path.dirname(os.path.abspath(__file__))
34
 
    if os.path.exists(os.path.join(dir, 'CVS')):
 
38
    if (os.path.exists(os.path.join(dir, 'CVS')) or
 
39
        os.path.exists(os.path.join(dir, '.svn'))):
35
40
        root = dir
36
41
    else:
37
42
        root = PKGDATADIR
40
45
def get_global_pixmap_dir():
41
46
    """ Returns the directory for global pixmaps (ex : application icon) """
42
47
    dir = os.path.dirname(os.path.abspath(__file__))
43
 
    if os.path.exists(os.path.join(dir, 'CVS')):
 
48
    if (os.path.exists(os.path.join(dir, 'CVS')) or
 
49
        os.path.exists(os.path.join(dir, '.svn'))):
44
50
        root = string.join(dir.split('/')[:-1], '/')
45
51
    else:
46
52
        root = PIXMAPDIR