How to import other modules from my own code?



I wanted to import dia_rotate.py from my own code. I wrote this as the beginning of my code:

import dia
import dia_rotate

class ModKeys:
    ......


dia_rotate.py is located in Home/.dia/python . The code doesn't work. If I try importing from the python console, it simply gives me an ImportError, simply can't find them. What should I do to import it?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]