郵便配達人の血痕,その2

あの修正のあと改めて調べてみたところ,paths.py にパッチを当てる方が正しい解決法らしいということが判明.

あの修正を取り消した上で,この辺を参考にしながら,各paths.py を修正する.

--- ./bin/paths.py.org	2008-01-08 09:40:09.000000000 +0900
+++ ./bin/paths.py	2008-01-08 09:42:14.000000000 +0900
@@ -49,16 +49,6 @@ sitedir = os.path.join(sys.prefix, 'lib'
                        'site-packages')
 sys.path.append(sitedir)
 
-
-# In a normal interactive Python environment, the japanese.pth and korean.pth
-# files would be imported automatically.  But because we inhibit the importing
-# of the site module, we need to be explicit about importing these codecs.
-import japanese
-# As of KoreanCodecs 2.0.5, you had to do the second import to get the Korean
-# codecs installed, however leave the first import in there in case an upgrade
-# changes this.
-import korean
-import korean.aliases
 # Arabic and Hebrew (RFC-1556) encoding aliases. (temporary solution)
 import encodings.aliases
 encodings.aliases.aliases.update({
--- ./cron/paths.py.org	2008-01-08 09:40:09.000000000 +0900
+++ ./cron/paths.py	2008-01-08 09:42:25.000000000 +0900
@@ -49,16 +49,6 @@ sitedir = os.path.join(sys.prefix, 'lib'
                        'site-packages')
 sys.path.append(sitedir)
 
-
-# In a normal interactive Python environment, the japanese.pth and korean.pth
-# files would be imported automatically.  But because we inhibit the importing
-# of the site module, we need to be explicit about importing these codecs.
-import japanese
-# As of KoreanCodecs 2.0.5, you had to do the second import to get the Korean
-# codecs installed, however leave the first import in there in case an upgrade
-# changes this.
-import korean
-import korean.aliases
 # Arabic and Hebrew (RFC-1556) encoding aliases. (temporary solution)
 import encodings.aliases
 encodings.aliases.aliases.update({
--- ./scripts/paths.py.org	2008-01-08 09:40:09.000000000 +0900
+++ ./scripts/paths.py	2008-01-08 09:42:34.000000000 +0900
@@ -49,16 +49,6 @@ sitedir = os.path.join(sys.prefix, 'lib'
                        'site-packages')
 sys.path.append(sitedir)
 
-
-# In a normal interactive Python environment, the japanese.pth and korean.pth
-# files would be imported automatically.  But because we inhibit the importing
-# of the site module, we need to be explicit about importing these codecs.
-import japanese
-# As of KoreanCodecs 2.0.5, you had to do the second import to get the Korean
-# codecs installed, however leave the first import in there in case an upgrade
-# changes this.
-import korean
-import korean.aliases
 # Arabic and Hebrew (RFC-1556) encoding aliases. (temporary solution)
 import encodings.aliases
 encodings.aliases.aliases.update({
--- ./tests/paths.py.org	2008-01-08 09:40:09.000000000 +0900
+++ ./tests/paths.py	2008-01-08 09:42:43.000000000 +0900
@@ -49,16 +49,6 @@ sitedir = os.path.join(sys.prefix, 'lib'
                        'site-packages')
 sys.path.append(sitedir)
 
-
-# In a normal interactive Python environment, the japanese.pth and korean.pth
-# files would be imported automatically.  But because we inhibit the importing
-# of the site module, we need to be explicit about importing these codecs.
-import japanese
-# As of KoreanCodecs 2.0.5, you had to do the second import to get the Korean
-# codecs installed, however leave the first import in there in case an upgrade
-# changes this.
-import korean
-import korean.aliases
 # Arabic and Hebrew (RFC-1556) encoding aliases. (temporary solution)
 import encodings.aliases
 encodings.aliases.aliases.update({