473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

PythonDoc Ant Task

Anyone ever use the PythonDoc ant task? I have the following...

<path id="myPyPath">
<pathelement location="src"/>
<pathelement location="resources"/>
</path>

<target name="pyDoc">
<mkdir dir="docs"/>
<py-doc pythonpathref="myPyPath" destdir="docs">
<fileset dir="src">
<include name="**/*.py"/>
</fileset>
</py-doc>
</target>

....this is a cut out of the build xml i am using...but it shows the
relevant parts. Anyways I can run my "pyDoc" target and it runs
successful with no errors. a "docs" directory is created but is empty.
Any idea as to why?

My "src" folder contains a python file, Foo.py. which looks like this

class Bar:
def printMe(self):
"""This method prints my data"""
print "some data is being printed"

....Thanks in advance.

Jun 1 '06 #1
2 1442
i found that the problem is because of an import, which is strange.
The imported module looks something like this

Expand|Select|Wrap|Line Numbers
  1. import time
  2.  
  3. class Foo:
  4. pass
  5.  
  6. class Bar:
  7. global javax.swing
  8. import javax.swing
  9.  
.....so it seems that pydoc cant giggity-giggit!

Jun 1 '06 #2
"abcd" wrote:
class Bar:
global javax.swing
import javax.swing
[/code]

....so it seems that pydoc cant giggity-giggit!


"global javax.swing" is not valid Python syntax. what is that global/import combo
supposed to do, and what environment do you run this under ?

</F>

Jun 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mystique | last post by:
I have a strange SQL Server 2000 DTS problem. I have a DTS Package that has three tasks in it. The first task is an Execute SQL Task that writes an entry to a log table, truncates a different table...
4
by: Christina | last post by:
Dear All, How can I pop up the windows task scheduler inside of my .net application? Such as I have a button called Schedule Now, after clicking it, the Add Scheduled Task window will pop up,...
1
by: forums_mp | last post by:
Come to think of it I have another question: With respect to priority task1 is the highest, task2 is the lowest. The snippet: SEM_ID task1_sema = semBCreate(SEM_Q_FIFO, SEM_EMPTY); SEM_ID...
1
by: Wesley Gibbs | last post by:
The Steps I do to create and run my task are as follows: 1) I open up Control Center 2) From the Control Center I click Tools to open the Task Center Window 3) I create a Task and it is shown...
9
by: klh | last post by:
We are running on Win 2003/DB2 V8 FP7a. My question concerns Task Center. I have about 200 tasks created and scheduled in Task Center. We are going to be moving many of the databases from this...
11
by: Max | last post by:
I'm writing a program that needs to be able to create custom .job files and add them to the scheduled tasks folder. What I'd like to know is, what is the format of a .job file and how do I go about...
4
by: mabond | last post by:
Does anyone know some code that will allow me to enable and/or disable a task which already exists in the task scheduer. I have a task which runs at 15 min intervals and from time to time I want to...
0
oll3i
by: oll3i | last post by:
import javax.swing.*; import java.awt.event.*; import java.util.ArrayList; import java.util.List; import java.util.concurrent.*; import java.lang.reflect.*; public class Exec1 extends JFrame...
1
by: Myster Edd | last post by:
I have a strange problem that I think deals with security on SQL 2005. I have a scheduled task that runs on a Windows 2000 machine. It calls a vb script which creates a connection to SQL Server. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.