This file is indexed.

/usr/share/pyshared/pyhoca/wxgui/basepath.py is in pyhoca-gui 0.4.0.8-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-

# Copyright (C) 2010-2013 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
# Copyright (C) 2010-2013 by Dick Kniep <dick.kniep@lindix.nl>
#
# PyHoca GUI is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# PyHoca GUI is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.

import os
from x2go import X2GOCLIENT_OS as _X2GOCLIENT_OS

if os.environ.has_key('PYHOCAGUI_DEVELOPMENT') and os.environ['PYHOCAGUI_DEVELOPMENT'] == '1':
    _base_location = os.path.abspath(os.path.curdir)
    _icons_location = os.path.join(_base_location, 'icons')
    _images_location = os.path.join(_base_location, 'img')
    if _X2GOCLIENT_OS != 'Windows':
        _locale_location = os.path.join(_base_location, 'locale')
    else:
        _locale_location = os.path.join(_base_location, 'build', 'mo')
        _nxproxy_location = os.path.join(_base_location, '..', 'pyhoca-contrib', 'mswin', 'nxproxy-mswin', 'nxproxy.exe')
        _pulseaudio_location = os.path.join(_base_location, '..', 'pyhoca-contrib', 'mswin', 'pulseaudio-mswin', 'pulseaudio-1.1', 'pulseaudio.exe')
else:
    if _X2GOCLIENT_OS == 'Windows':
        _base_location = os.path.abspath(os.path.curdir)
        _icons_location = os.path.join(_base_location, 'icons')
        _images_location = os.path.join(_base_location, 'img')
        _locale_location = os.path.join(_base_location, 'mo')
        _nxproxy_location = os.path.join(_base_location, 'nxproxy', 'nxproxy.exe')
        _pulseaudio_location = os.path.join(_base_location, 'pulseaudio', 'pulseaudio.exe')
    else:
        _icons_location = '/usr/share/icons'
        _images_location = '/usr/share/pyhoca/img'
        _locale_location = '/usr/share/locale'

icons_basepath = _icons_location
images_basepath = _images_location
if _X2GOCLIENT_OS == 'Windows':
    nxproxy_binary = _nxproxy_location
    pulseaudio_binary = _pulseaudio_location
locale_basepath = _locale_location