On Oct 8, 9:19 am, goldtech [EMAIL PROTECTED] wrote:
How did you learn Win32com?
Other than the O'Reilly book, I've never found a lot of
documentation.
Trying to browse COM in PythonWin is tough - there's tons of stuff in
there. I've never been able to find the Win32com classes, methods,
from win32com.shell import shell, shellcon
desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0)
/code
I have a general problem with using win32com. It's the documentation.
I never know what is available, what classes, methods, what they do.
Even some of the existing
On Oct 7, 12:30 pm, Tim Golden [EMAIL PROTECTED] wrote:
Tim Chase wrote:
You are assuming the system is not localized, that won't work if you
distribute your applications internationally. In my system it is not
Desktop, it is Escritorio, and I guess it will vary with every
locale. Does
from win32com.shell import shell, shellcon
desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0)
/code
Tim,
How did you learn Win32com?
Other than the O'Reilly book, I've never found a lot of
documentation.
Trying to browse COM in PythonWin is tough - there's tons of stuff in
On Oct 8, 9:19 am, goldtech [EMAIL PROTECTED] wrote:
from win32com.shell import shell, shellcon
desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0)
/code
Tim,
How did you learn Win32com?
Other than the O'Reilly book, I've never found a lot of
documentation.
Trying to
[EMAIL PROTECTED] wrote:
On Oct 8, 9:19 am, goldtech [EMAIL PROTECTED] wrote:
from win32com.shell import shell, shellcon
desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0)
/code
Tim,
How did you learn Win32com?
Other than the O'Reilly book, I've never found a lot of
On Oct 8, 10:11 am, Tim Golden [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
On Oct 8, 9:19 am, goldtech [EMAIL PROTECTED] wrote:
from win32com.shell import shell, shellcon
desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0)
/code
Tim,
How did you learn Win32com?
On Monday 08 October 2007 17:11:25 Tim Golden wrote:
[EMAIL PROTECTED] wrote:
On Oct 8, 9:19 am, goldtech [EMAIL PROTECTED] wrote:
from win32com.shell import shell, shellcon
desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0)
/code
Tim,
How did you learn Win32com?
On Oct 6, 2007, at 11:31 PM, goldtech wrote:
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm looking for is an
This is really a Windows question, not a Python question. You should
have been able to figure it out yourself by examining existing
environment variables.
I agree, you're right. I learn more by figuring out the code myself.
After Google briefly: In a DOS box type: SET
This was too easy -
Matimus wrote:
On Oct 6, 8:31 pm, goldtech [EMAIL PROTECTED] wrote:
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm
On Oct 7, 1:24 am, Scott David Daniels [EMAIL PROTECTED] wrote:
goldtech wrote:
... I want the new file's location to be on the user's desktop in
a Windows XP environment
How about:
import os.path
handle = open(os.path.expanduser(r'~\DeskTop\somefile.txt'), 'w')
...
You are assuming the system is not localized, that won't work if you
distribute your applications internationally. In my system it is not
Desktop, it is Escritorio, and I guess it will vary with every
locale. Does someone know a way to find out what name does the desktop
have?
I believe you
Tim Chase wrote:
You are assuming the system is not localized, that won't work if you
distribute your applications internationally. In my system it is not
Desktop, it is Escritorio, and I guess it will vary with every
locale. Does someone know a way to find out what name does the desktop
Tim Chase wrote:
You are assuming the system is not localized, that won't work if you
distribute your applications internationally. In my system it is not
Desktop, it is Escritorio, and I guess it will vary with every
locale. Does someone know a way to find out what name does the desktop
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm looking for is an environmental
variable that will usually be correct on most
I believe you can use something like '%USERPROFILE%\DESKTOP' as the path on
a windows machine to get to the current users desktop directory. I'm not
sure if the python open() command will expand that correctly, but give it a
shot.
-Josh
On 10/6/07, goldtech [EMAIL PROTECTED] wrote:
Can anyone
On Oct 6, 11:31 pm, goldtech [EMAIL PROTECTED] wrote:
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm looking for is an
goldtech wrote:
... I want the new file's location to be on the user's desktop in
a Windows XP environment
How about:
import os.path
handle = open(os.path.expanduser(r'~\DeskTop\somefile.txt'), 'w')
...
-Scott
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 6, 8:31 pm, goldtech [EMAIL PROTECTED] wrote:
Can anyone link me or explain the following:
I open a file in a python script. I want the new file's location to be
on the user's desktop in a Windows XP environment. fileHandle = open
(., 'w' ) what I guess I'm looking for is an
20 matches
Mail list logo