Nalli Dinesh wrote:
Hi,
python print statements are extensively used in my application for
debugging purpose. My application is ready, but I do not want to
remove the print statements and at the same time I do not want python
interpreter to execute/run the print statements. How can I accompl
Tim Roberts wrote:
Jim Vickroy wrote:
Tim Roberts wrote:
Is this a custom account you created? Does it actually have a profile
(C:\Documents and Settings\Custom User\Application Data)?
Yes, that folder does exist. When started manually (with that
account) the Service works
Tim Roberts wrote:
jim.vick...@noaa.gov wrote:
Hello everyone,
*_
Background
_*
1. I've created a Windows Service that looks for its configuration
data in a sub-folder of/ os.environ['APPDATA']/.
2. The Service is configured to automatically start after host reboot.
3. The Ser
Hello everyone,Background
I've created a Windows Service that looks for its configuration data in a sub-folder of os.environ['APPDATA'].
The Service is configured to automatically start after host reboot.
The Service runs successfully when manually started under its custom (i,e,, not Local Sys
Mark Hammond wrote:
Jim Vickroy wrote:
I notice that the build number appears in:
* pywin32.version.txt
but I was hoping for something similar to numpy or PIL.
I can't see a huge gain in pywin32 opening that file just to make it
available in __version__, and having it man
Hello all,
I'm writing a script to determine the versions of various installed
software packages.
How do I access the pywin32 build number from within a script?
For example:
* for the numpy package, it is: numpy.__version__
* for the PIL package, PIL.Image.VERSION seems to work
I noti
Hello all,
I am attempting to automate Sourcesafe access.
Here is a sample session:
>>> import sys
>>> sys.version
'2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]'
>>> sys.subversion
('CPython', 'tags/r252', '60911')
>>> sys.platform
'win32'
>>> sys.getwindowsversion()
(5
- Original Message -
From: RANDALL HOWELL <[EMAIL PROTECTED]>
Date: Monday, August 20, 2007 1:53 pm
Subject: [python-win32] Newbee question
> I am trying to figure out how to code my stop pay. I
> get paid 40 cents a stop for the first 22 stops, and
> $1.40 for stops after that.
> stops
James Matthews wrote:
Thanks Emlyn
Just one more issue i have here. When i pass a string as an argument
to the thread it seems to call the method returning the string as a
tuple and i get an error that the method gets 48 arguments and it can
only accept 2?
If this doesn't make sense here is
James Matthews wrote:
Dear List.
When spawning a thread using the threading module syntax new_thread =
threading.Thread(target=function_returning_a_list) How can i get the
list that this function is supposed to return.
Thanks
James
--
http://www.goldwatches.com/watches.asp?Brand=14
http://
James Matthews wrote:
So i need to make the list a global variable
It could be but that is not necessary. The list is simply a variable
known to the program unit that creates the threading.Thread(...) instance.
On 7/3/07, *Jim Vickroy* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]&g
Sam The Cat wrote:
> Help !
>
> I am writing some COM code in Python to control photoshop. Several
> functions of PS require an "Array" argument. In the examples of VBscript
> or javascript the Array type is used. I have tried what would appear to be
> the equivalent in Python -- Lists and Tup
H. They are visible for me. What do you see when you click on
the "Notes" icon adjacent to the "Monitor" icon?
-- jv
- Original Message -
From: Tony Cappellini <[EMAIL PROTECTED]>
Date: Monday, March 19, 2007 1:12 pm
Subject: [python-win32] Release notes for Build 210
> I'm trying
Grzegorz Adam Hankiewicz wrote:
Grzegorz Adam Hankiewicz wrote:
Hello.
I'm following
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52267 to open a
local .mdb file and export the contents. It works with normal databases,
but I cannot open a password protected database.
Accordin
rieh25 wrote:
>I'm thinking of implementing pywin32 to implement access to an Oracle
>database, to users of an application built in Zope . Is this a good idea, or
>is pywin32's odbc feature intended for a single user?
>
>Thanks
>
>
pywin32's odbc interface provides connection objects -- as many
I am not familiar with this approach (and I am working on a machine
where I do not have admin privileges), but an alternative is to
download the Windows extensions for Python by Mark Hammond (et. al.) at:
http://sourceforge.net/projects/pywin32/
which makes writing a Windows service simple as
Tor Erik Sønvisen wrote:
>Given a process id (or some other identificator), is it possible to
>monitor resource usage of that process only?
>___
>Python-win32 mailing list
>Python-win32@python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
[EMAIL PROTECTED] wrote:
Hi,
I'm an engineer from France and I use PythonWin very often. I Have one
question please : I'd like to run a function from a library included in the
"Tools=>COM Browser=>Registered Type Librairies" menu. This library is
called "Bibiothèque de pilotage de Scandi
scripts have always been run using python.exe rather than
pythonwin, and my observations on memory usage come from the Windows
Task Manager.
Roger Upole wrote:
Jim Vickroy wrote:
I have a "fairly" simple test script that appears to exhibit a memory
leak when using ADO
Tim Roberts wrote:
Jim Vickroy wrote:
I have a "fairly" simple test script that appears to exhibit a memory
leak when using ADO to insert rows in a SQL Server database via a
persistent connection.
Memory requirements monotonically increase with time (apparently in 4k
I have a "fairly" simple test script that appears to exhibit a memory
leak when using ADO to insert rows in a SQL Server database via a
persistent connection.
Memory requirements monotonically increase with time (apparently in 4k
increments).
I'm using python 2.4.1, win32com (pywin32 build 2
- Original Message -
From: "Ahmed, Shakir" <[EMAIL PROTECTED]>
Date: Monday, July 17, 2006 12:23 pm
Subject: Re: [python-win32] unzip a file
> HI all,
>
> I am new python and looking scripts for unzip files form a local
> folder.Any help is highly appreciated.
>
> Thanks in advance.
>
Roger Upole wrote:
Jim.Vickroy wrote:
Hello,
I am a novice user of ADOX who is attempting to create a database and
a table in it.
I seem to be able to create a SQL Express database but am unable to
add a table to it.
The attached script (adox.py) illustrates the difficulty.
A
Hello,
I am a novice user of ADOX who is attempting to create a database and
a table in it.
I seem to be able to create a SQL Express database but am unable to
add a table to it.
The attached script (adox.py) illustrates the difficulty.
Any suggestions would be appreciated.
Thanks,
-- jv
''
ADOX Catalog objects appear to have a Delete method
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/admscadoddlmethods.asp)
but I'm not seeing it from python-win:
>>> from win32com.client import Dispatch
>>> catalog = Dispatch('ADOX.Catalog')
>>> print dir(catal
Fantastic! That's it exactly.
I was hoping to avoid polling and this shows me how.
Thanks much.
-- jv
Tim Golden wrote:
>[Jim Vickroy]
>
>
>
>>Sorry if this has been previously answered, but my search failed to
>>
>>
>detect it.
>
>
&g
Sorry if this has been previously answered, but my search failed to
detect it.
Could someone refer to information on how to detect file modification
(e.g., update) events in MS Windows?
Thanks,
-- jv
___
Python-win32 mailing list
Python-win32@python.
You may wish to take a look at the time module (specifically)
time.gmtime(...) or time.localtime(...)) to work with the return value
from getmtime(...).
Can't really help much with the return value from the database since I
don't know what type of object it is. If you are using Python 2.3 or
Jorge Ramirez wrote:
> Hello,
>
> From windows, using a python script how can I open Adobe Reader
> without displaying a PDF document? Furthermore, using a script is it
> possible to run two Adobe Reader sessions simulatneously. Thanks in
> advance.
>
> Kind Regards,
> JR
>
>-
Hello Roger,
Assuming your Python installation is viable (does typing "python" sans
quotes at the command line launch the Python interpreter?), have you
renamed the file from "rtf2xml" to "rtf2xml.py" as required to run
under MS Windows?
-- jv
Hello
Windows XP
SP2.
I am a Python
novic
Harish Kotian wrote:
> Hi Friends
>
> I am looking for sample code using python script for:
> 1) reading / displaying contents from MS Access database, probably
> using ODBC drivers
> 2) Reading from a sessions object,
> Any pointers?
> Regards
> Harish.
>
>
>-
ryan pinto wrote:
>hi - need some help,
>
>Looking for some way to close processes which are
>open. Is there any way that a process can be detected
>if its running and then closed.
>
>Ryan
>
>__
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the be
It is in the win32api module.
-- jv
It looks like GetThreadId is what I need, but I can't find that in any of the win32* modules. I do see CreateThread in CVS in Pythonwin/win32thread.cpp, but I don't have a win32thread in my installation.
On 8/1/05, Justin Johnson <[EMAIL PROTECTED]> wrote:
MSD
Hello John,
Why does it matter?
Why not just ignore the specific type of exception raised by an invalid
SetPassword() or SetInfo() request as follows:
try:
adsuser.SetPassword(trans.password)
adsuser.SetInfo()
except :
pass # or whatever
except :
pass # or whatever
except Exception,
Thomas Heller wrote:
>Harald Armin Massa <[EMAIL PROTECTED]> writes:
>
>
>
>>Hello,
>>
>>within the win32-extensions under demo I found the pipetestservice.py and am
>>developping my own services out of it.
>>
>>With each development step I have to
>>
>>stop the running service
>>remove the exi
Assuming you have tkinter installed as part of your Python distribution,
I have attached a demo (courtesy of Mark Hammond) that shows much of
what is possible (e.g., menus, buttons, etc.).
Hope this helps.
-- jv
habtamu gulilat wrote:
am habtamu from Netherlands
I need to prepare userinte
36 matches
Mail list logo