[PythonCE] Can't Get My Import Module Command to Work Properly

Bandung bandung at skyesystems.com
Wed May 17 15:02:27 CEST 2006

The *.pth is the easiest solution to the problem of being able to run a
script within a given directory.  Mark, your solution also works wrt to
appending the needed directory.  In fact it is the same as mine.  Only
difference is the name of the file and the fact that I don't use an os
import line.

The problem I was having related to the following command line within my
paths.py file 

                    from calctaxes import *  

This wasn't working.  It turns out that the reason it didn't work was
because I typed 

                    import paths

What I should have typed was

                    from paths  import *

Now when I use function within calctaxes, they work.  That is, I can type
the following

                     tx = calc(10,5)

Before I would get an error.  calc does not exist.

View this message in context: http://www.nabble.com/Can%27t-Get-My-Import-Module-Command-to-Work-Properly-t1631521.html#a4429981
Sent from the Python - pythonce forum at Nabble.com.

More information about the PythonCE mailing list