I'm trying to use Python to start the dos-box (cmd.exe) and be
able to
call commands on it and receive output from it.
The Command window is just a terminal, there is no output to
be had other than an exit code when it closes.
However, none of the documentation for popen and
spawn cover this
You have to set up your Access database as an ODBC data source. I can't give you all the details but
on my Win2k system if I go to Start / Control Panels / Administrative Tools / Data Sources (ODBC)
that is the place to set it up.
IIRC you give the data source a name. Then in the ODBC driver
I'm not too sure about this...
Couldn't you make that a package?
Rename Backup.py to __init__.py
Put all of the modules in a folder named Backup
in your sys.path - Question: Does it have to be
in site-packages?
Well, there's my two bits,
Jacob
During the recent discussion on jython, a poster
Alan Gauld wrote:
I'm trying to use Python to start the dos-box ("cmd.exe") and be
able to
call commands on it and receive output from it.
The Command window is just a terminal, there is no output to
be had other than an exit code when it closes.
Well, ultimately, what I want to be able to do is open Audacity
(http://audacity.sourceforge.net/) at a predetermined time and have
it
begin recording wave mix out (the default i have it set to anyway),
and
then have it stop again when i send it a command.
This will be much easier from python
Whew! What a trip this bug has been!
Danny was exactly right here:
is exactly the sort of thing I'd expect if two threads were
contending for the same resource, so let's see if the bug has to do
with this.
This bug drove me nuts. (it's a short drive)
So I started wrapping my file
[Gonçalo Rodrigues]
It this correct? Python lists are not linked-lists (as in Scheme, for
example). They are more like arrays (or vectors in C++/Java) with a
little more sofistication built into them to allow, for example, to
amortize over time a sequence of append operations. But in a
It this correct? Python lists are not linked-lists (as in Scheme,
for
example). They are more like arrays (or vectors in C++/Java) with a
little more sofistication built into them to allow, for example, to
amortize over time a sequence of append operations. But in a
nutshell,
len is actually
GR len is actually a field in the underlying C object so len() is a
GR constant (O(1)) and as-fast-as-it-can-be operation.
TP ...n integers), but (ignoring the range() complication) there's no
TP difference in O() behavior between the two.
OK, The timbot's word is good enough for me, I won't
[Alan Gauld]
OK, The timbot's word is good enough for me, I won't bother
looking at the code, I'll revert to my previous assumption! :-)
It's educational to look at the code anyway wink. Here it is, from
Python's listobject.c:
static int
list_length(PyListObject *a)
{
return
I did some googling, and found this in the archives of this mailing
list:
import os
os.system('c:\\abaqus\\5.8-14\\abaqus.exe post')
, where post was a command, *not* a file. Now, I tried something
similar, since essentially what I wish to be able to do is have
Audacity think I typed the
I have only wrapped my lock around file-descriptor creations. Should I
wrap it around closings too? Or the whole open - close transaction?
It sounds like error-prone work to do the latter. What am I missing?
Hi Marilyn,
Can you send a link to the source code to the Tutor list? I'm
Hello,
I've been working on a small GUI program (on off) for a little while now and
I'd love to have the group (or anyone for that matter) take a look at it and
give me some pointers. Since I'm not a programmer and I don't do this
continuously, I don't now if I'm on the right track or not. I'd
13 matches
Mail list logo