Bug#559236: python-asterisk: fails to detect the configuration in $HOME

Bernd Zeimetz bzed at debian.org
Wed Dec 2 23:58:13 UTC 2009


Package: python-asterisk
Version: 0.1a3+r160-4
Severity: important
Tags: patch

In /usr/share/python-support/python-asterisk/Asterisk/Config.py the
following lines are used in CONFIG_PATHNAMES:

os.path.join(os.environ.get('HOME', ''), '/.py-asterisk.conf'),
os.path.join(os.environ.get('USERPROFILE', ''),	'/py-asterisk.conf'),

which results in /.py-asterisk.conf and /py-asterisk.conf
being added to the search path. Instead the following should be used:

os.path.join(os.environ.get('HOME', ''), '.py-asterisk.conf'),
os.path.join(os.environ.get('USERPROFILE', ''), 'py-asterisk.conf'),



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.1-think (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-asterisk depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-support                1.0.4      automated rebuilding support for P

python-asterisk recommends no packages.

python-asterisk suggests no packages.

-- no debconf information





More information about the Pkg-voip-maintainers mailing list