O
Olaf Meding
When does the makepy utility generate a .py file and when a directory?
And what decided if a directory or a file is generated?
What is the difference between a file and a directory (both named
after the uuid in the IDL file)?
Most of the time the code below generates a file called
BF79B6C5-47BE-11D2-BACD-006008060A3A.py. But one time it generated a
directory with that same name. This directory contained several .py
files.
Both the .py file and the directory are generated at:
"C:\Python23\Lib\site-packages\win32com\gen_py".
Here is the Python code:
from win32com.client import gencache
gencache.EnsureModule('{BF79B6C5-47BE-11D2-BACD-006008060A3A}', 0,
1, 0)
Thanks so much for your help.
Olaf
And what decided if a directory or a file is generated?
What is the difference between a file and a directory (both named
after the uuid in the IDL file)?
Most of the time the code below generates a file called
BF79B6C5-47BE-11D2-BACD-006008060A3A.py. But one time it generated a
directory with that same name. This directory contained several .py
files.
Both the .py file and the directory are generated at:
"C:\Python23\Lib\site-packages\win32com\gen_py".
Here is the Python code:
from win32com.client import gencache
gencache.EnsureModule('{BF79B6C5-47BE-11D2-BACD-006008060A3A}', 0,
1, 0)
Thanks so much for your help.
Olaf