> I'm trying to call an executable program in Python. I did the following, but
> it doesn't work. Any help is appreciated.
>
> os.system('C:\Program Files\EPANET2\epanet2d.exe
> C:\simulation test\Network3_1.inp C:\simulationtest\Network3_1.out')
try putting an "r" in front of the string, i.e. o
Chris Delgado wrote:
> Hello all,
>
> I have been studying python tutorials and have a couple beginning python
> books that I have worked through. I have a very specific project in mind
> and I want to ask a couple questions. The project in question is this:
>
> I am making a Hand History conve
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am fairly new to programming in python, but for work I am running a
> simulation
> of a distribution center. What I am trying to do now is to save the state of
> the simulation (i.e. the event list and any other necessary variables) so that
> it can be "resto
> Dear all,
> I'm trying to call an executable program in Python. I did the following, but
> it doesn't work. Any help is appreciated.
> os.system('C:\Program Files\EPANET2\epanet2d.exe C:\simulation
> test\Network3_1.inp C:\simulation test\Network3_1.out')
My first guess: you need quotes arou
Does it return any error message??
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mu Mu
Sent: Wednesday, May 17, 2006
11:47 AM
To: Tutor@python.org
Subject: [Tutor] about calling
external program in Python
Dear all,
I'm trying to call an exec
> os.system('C:\Program Files\EPANET2\epanet2d.exe
> C:\simulation test\Network3_1.inp C:\simulation
> test\Network3_1.out')
have you tried the following?
os.system('"C:\Program Files\EPANET2\epanet2d.exe" "C:\simulation
test\Network3_1.inp" "C:\simulation test\Network3_1.out'"')
--
Gabriel Dai
I'm trying to set up a routine to send customized e-mail messages from
records in a database.
My first step is trying to send one simple e-mail message. After I get that
figured out, I can move on to step 2.
Unfortunately, when I try the example code in the tutorials for sending
e-mail, I get
On Tuesday 16 May 2006 22:41, Alan Gauld wrote:
> > Heh, you and me both. I cut my teeth on IBM System/370
> > assembler. Last
> > time I had a job where I actually did programming as part of it,
> > it was
> > System/390 machine code. That's right, machine code, not
> > assembler; I'd
> > direct
On Wed, 2006-05-17 at 10:03 -0500, URBAN LANDREMAN wrote:
> I'm trying to set up a routine to send customized e-mail messages from
> records in a database.
> My first step is trying to send one simple e-mail message. After I get that
> figured out, I can move on to step 2.
>
> Unfortunately, wh
Hi
I am using the Win32com library to pick up data from an EXCEL spreadsheet
but am having trouble with dates. I want to convert a date read from the
XL sheet into a float using this snippet
from win32com.client import dispatch
import time
xlFile="test.xls"
xlApp=Dispatch("Excel.Application")
Dear all,
I tried the following:
>>> os.system(r'C:\\simulation test\\epanet2d.exe C:\\simulation test\\Network3_1.inp C:\\simulation test\\Network3_1.out')1>>> os.system('C:\simulation test\epanet2d.exe C:\simulation test\Network3_1.inp C:\simulation test\Network3_1.out')
1>>> os.system(r'C:
S W Collier wrote:
> You chaps are making me nostalgic; days of the 8080A/Z80/F8/6800 when
> I built my first computer. In those days 2K of memory was considered
> large for a personal computer.
>
In 1975 Boeing Computer Services proudly announced the addition of 4
megabytes of memory to one o
On Tue, 16 May 2006, Alan Gauld wrote:
> Hah, if you haven't bootstrapped a VAX using the toggle switches on
> the front panel you ain't a real progammer ;-)
Not with a VAX, but I had to do that with a TI-980, long, long ago! And
once I had it booted, because the assembler was a pretty primitiv
Etrade Griffiths wrote:
> Hi
>
> I am using the Win32com library to pick up data from an EXCEL spreadsheet
> but am having trouble with dates. I want to convert a date read from the
> XL sheet into a float using this snippet
>
> from win32com.client import dispatch
> import time
>
> xlFile="test
> But at least I got to use punched cards. I forget what the other
> system
> we had in that room was, but I had to use paper tape on that one.
I've never actually used punch cards. But I have used punch tape.
Where a loop really was a loop! :-)
We used them to transmit source code from our pun
"Mu Mu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I tried the following:
> >>> os.system(r'C:\\simulation test\\epanet2d.exe C:\\simulation
> test\\Network3_1.inp C:\\simulation test\\Network3_1.out')
> 1
Any non zero return value means that an error occurred.
The os.system c
I redid the following:
import osimport syssys.path.append('C:\Program Files\EPANET2')os.system('epanet2d.exe C:\simulation_test\Network3_1.inp C:\simulation_test\Network3_1.out')
and safed this as test.py
In the Pythonwin interface to run. I got nothing.
Then I added 'C:\Program Files\EPAN
Bob
I was looking at
http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/pywin32/PyTime.html
To my untrained eye it looks like there are a number of functions for
PyTime objects (eg __int__, __hash__ etc). However, I tried int(curr_date)
and it seems to work OK - thanks!
At 19:11 17/05/20
Kent, Thanks for the reply."I would pick one input format and work on a program that reads it and generates some kind of events for everything significant that happens. At first the events could be just print statements, later they can reformat the data to the required output format. From your desc
I think you may be confiused about sys.path.
import os
import sys
sys.path.append('C:\Program Files\EPANET2')
os.system('epanet2d.exe C:\simulation_test\Network3_1.inp
C:\simulation_test\Network3_1.out')
--
sys.path is the path that Python uses to look
Chris Delgado wrote:
> Here is a sample hand history.
>
> Failure To Launch 8161071-72989 Holdem No Limit $0.50/$1
> [May 17 03:26:33] : Hand Start.
> [May 17 03:26:33] : Seat 1 : bnb3 has $92.50
> [May 17 03:26:33] : Seat 2 : pineaa has $15.25
> [May 17 03:26:33] : Seat 3 : prowlerslim has $107.
Here's a small batch of questions/answers for the tutor FAQ.
Let me know if you have any corrections or clarifications. I'll post
them to the web site in a couple of days.
Mike
-
How much code should I post?
Post as much relev
Kent,>OK, just looking at this, I'm guessing that you might want some kind of >data to represent the players, maybe something to represent the pot, >maybe something to represent the cards on the table. It really depends >on what kind of output you want to get from this. Can you post an >example of
Chris Delgado wrote:
> Here is an example of the type of output I am looking for.
OK, I think you have your work cut out for you :-) I still think my
basic approach can work but the output handler is going to have to keep
track of a fair amount of stuff as it gets parse events. The good news
24 matches
Mail list logo