~ubuntu-branches/debian/jessie/phatch/jessie

« back to all changes in this revision

Viewing changes to phatch/core/config.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski, Stani M, Piotr Ożarowski
  • Date: 2008-07-21 12:53:17 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080721125317-sqk2sdl3pwl2u4gl
Tags: 0.1.5-1
[ Stani M ]
* New upstream release(Closes LP: #228259, #232436, #236282, #236462, #237359)
* debian/control:
  - Added pkg-config and python-nautilus to build-depends, as
    setup.py uses nautilus-python.pc to look for the nautilus
    extensions path. Closes: #475233.
* debian/patches:
  - All patches of Ubuntu and Debian are implemented upstream and are removed
    from the package

[ Piotr Ożarowski ]
* Bump Standards-Version to 3.8.0 (no changes needed)
* debian/copyright wrapped at column 80 (where possible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# along with this program.  If not, see http://www.gnu.org/licenses/
18
18
 
19
19
import gettext, glob, locale, os, sys
 
20
from lib.unicoding import ensure_unicode
20
21
 
21
22
USER_PATH       = os.path.expanduser('~')
22
23
try:
59
60
    if not phatch_python_path:
60
61
        phatch_python_path = os.path.dirname(
61
62
            os.path.dirname(os.path.abspath(__file__)))
62
 
    if phatch_python_path not in sys.path:
 
63
    if not(phatch_python_path in [ensure_unicode(x) for x in sys.path]):
63
64
        sys.path.insert(0,phatch_python_path)
64
65
    return phatch_python_path
65
66