1 | initial version |

To what i understand, your package should be located within the Python path of Sage. Note that the command `python`

launches the python interpreter from your distribution while the command `sage -python`

launches the python that is shipped with Sage. In order not to interfere with your distribution, the python packages that are shipped with Sage are stored in a separate directory, that is disjoint to the ones where your distribution stores its own python packages. To see this, you can open a session and type:

```
>>> import os
>>> os.sys.path
```

And see the difference in both cases.

So what you need is to add the path of your module in the Sage python path. It is explained on that question.

2 | No.2 Revision |

To what i understand, your package should be located within the Python path of Sage. Note that the command `python`

launches the python interpreter from your distribution while the command `sage -python`

launches the python that is shipped with Sage. In order not to interfere with your distribution, the python packages that are shipped with Sage are stored in a separate directory, that is disjoint to the ones where your distribution stores its own python packages. Both pythons use a different path, that is a different set of directories where they have to look in order to find their packages. To see this, you can open a session and type:

```
>>> import os
>>> os.sys.path
```

And see the difference in both cases.

So what you need is to add the path of your module in ~~the Sage ~~Sage's python path. It is explained on that question.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.