Re: [python-win32] How to set value with PyIPropertyStore

2019-11-07 Thread Tim Roberts
Peng Chen wrote: Hi Tim,  Thanks for the reply. Sorry for the late. I just found your email today. Yes I tried with this code: from win32comext.propsys import propsys, pscon VIDEO_DATE_ENCODED = pscon.PKEY_Media_DateEncoded properties = propsys.SHGetPropertyStoreFromParsingName(file_name) mDat

Re: [python-win32] How to set value with PyIPropertyStore

2019-11-07 Thread Peng Chen
Thanks Tim, I tried: dateShifted = propsys.PyPROPVARIANT( mDate + shift_time.timedelta_obj, pythoncom.VT_DATE) and it reports: module 'win32comext.propsys.propsys' has no attribute 'PyPROPVARIANT' Should I import it from elsewhere? because the import I had is from win32comext.propsys im

Re: [python-win32] How to set value with PyIPropertyStore

2019-11-07 Thread Tim Roberts
On Nov 7, 2019, at 2:33 PM, Peng Chen wrote: > > I tried: > dateShifted = propsys.PyPROPVARIANT( > mDate + shift_time.timedelta_obj, pythoncom.VT_DATE) > and it reports: > module 'win32comext.propsys.propsys' has no attribute ‘PyPROPVARIANT' It is embarrassing that I had to figure th