Changeset 112309 in webkit


Ignore:
Timestamp:
Mar 27, 2012 1:33:07 PM (12 years ago)
Author:
kubo@profusion.mobi
Message:

[jhbuild] Prepend jhbuildrc's directory to sys.path instead of appending.
https://bugs.webkit.org/show_bug.cgi?id=82252

Reviewed by Gustavo Noronha Silva.

Appending the directory containing common.py may be problematic if
another path in sys.path also contains either a common.py or a
common/ module, so prepend to select our version instead. This is
the case with fail2ban, which has a common/ directory which may
end up being in Python's default path.

  • efl/jhbuildrc:
  • gtk/jhbuildrc:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r112298 r112309  
     12012-03-26  Raphael Kubo da Costa  <rakuco@FreeBSD.org>
     2
     3        [jhbuild] Prepend jhbuildrc's directory to sys.path instead of appending.
     4        https://bugs.webkit.org/show_bug.cgi?id=82252
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Appending the directory containing common.py may be problematic if
     9        another path in sys.path also contains either a common.py or a
     10        common/ module, so prepend to select our version instead. This is
     11        the case with fail2ban, which has a common/ directory which may
     12        end up being in Python's default path.
     13
     14        * efl/jhbuildrc:
     15        * gtk/jhbuildrc:
     16
    1172012-03-27  Dirk Pranke  <dpranke@chromium.org>
    218
  • trunk/Tools/efl/jhbuildrc

    r111313 r112309  
    2121
    2222__efl_tools_directory = os.path.abspath(os.path.dirname(__file__))
    23 sys.path.append(__efl_tools_directory)
     23sys.path = [__efl_tools_directory] + sys.path
    2424import common
    2525
  • trunk/Tools/gtk/jhbuildrc

    r111313 r112309  
    2020
    2121__gtk_tools_directory = os.path.abspath(os.path.dirname(__file__))
    22 sys.path.append(__gtk_tools_directory)
     22sys.path = [__gtk_tools_directory] + sys.path
    2323import common
    2424
Note: See TracChangeset for help on using the changeset viewer.