David Philp wrote:
> 
> On 17/10/2008, at 10:51 AM, David Joyner wrote:
> 
>> Hi:
>>
>> I want to call a C program in Sage which is included with Sage  
>> (wtdist).
>> What is the easiest way to do this? The line I'd like to execute  
>> looks like
>>
>> wtdist filename::code > output.txt
> 
> output_txt = os.popen('wtdist filename::code').readlines()
> 
> I think that's all you need.  I don't see anything improper with it.

Except that, for me, that code returns an error that it can't find the 
program.

In searching for the program, I see the following files:

sage/local/lib/gap-4.4.10/pkg/guava3.4/bin/i686-pc-linux-gnu-gcc/wtdist
sage/local/lib/gap-4.4.10/pkg/guava3.4/bin/wtdist
sage/local/lib/gap-4.4.10/pkg/guava3.4/bin/leon/wtdist

You might try one of those, or if you want to find the commands on your 
own system, just go to the sage directory and type:

find . -name wtdist

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to