Skip to content

Commit 07184c0

Browse files
committed
Update if_pyth.{txt,jax}
1 parent c915c7c commit 07184c0

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

doc/if_pyth.jax

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,10 @@ MS-Windows ~
744744

745745
WindowsでPythonインターフェイスを使うには、PythonのDLLが検索パス内に存在しなけ
746746
ればなりません。コンソールウィンドウで "path" とタイプすると、どのディレクトリ
747-
が検索パスとなるか表示することができます。また 'pythondll''pythonthreedll'
748-
オプションを Python の DLL を指定するのに使うこともできます。
747+
が検索パスとなるか表示することができます。DLL が検索パスに見つからない場合、
748+
Vim はレジストリをチェックして Python がインストールされているパスを見つけます。
749+
また 'pythondll''pythonthreedll' オプションを Python の DLL を指定するのに
750+
使うこともできます。
749751

750752
DLLの名前はVimをコンパイルした時のPythonのバージョンに一致しなければなりませ
751753
ん。現在その名前は "python27.dll" です。これはPython 2.7用です。これは
@@ -772,6 +774,8 @@ Python 共有ライブラリのバージョンは Vim がコンパイルされ
772774
Stable ABI がサポートされているかどうかを確認する方法については、|has-python|
773775
を参照するか、バージョン出力に |+python3/dyn-stable| が含まれているかどうかを
774776
確認してください。
777+
MS-Windows では、'pythonthreedll' は "python3.dll" に設定されます。レジストリ
778+
から DLL を検索するとき、Vim は Python の最新バージョンを検索します。
775779

776780
==============================================================================
777781
10. Python 3 *python3*

en/if_pyth.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,10 @@ you can use Vim without this file.
754754
MS-Windows ~
755755

756756
To use the Python interface the Python DLL must be in your search path. In a
757-
console window type "path" to see what directories are used. The 'pythondll'
758-
or 'pythonthreedll' option can be also used to specify the Python DLL.
757+
console window type "path" to see what directories are used. If the DLL is
758+
not found in your search path, Vim will check the registry to find the path
759+
where Python is installed. The 'pythondll' or 'pythonthreedll' option can be
760+
also used to specify the Python DLL.
759761

760762
The name of the DLL should match the Python version Vim was compiled with.
761763
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
@@ -782,6 +784,8 @@ and failures. With Stable ABI, this restriction is relaxed, and any Python 3
782784
library with version of at least |v:python3_version| will work. See
783785
|has-python| for how to check if Stable ABI is supported, or see if version
784786
output includes |+python3/dyn-stable|.
787+
On MS-Windows, 'pythonthreedll' will be set to "python3.dll". When searching
788+
the DLL from the registry, Vim will search the latest version of Python.
785789

786790
==============================================================================
787791
10. Python 3 *python3*

0 commit comments

Comments
 (0)