Python command line using Cygwin: ImportError
Question: My python files are as follows:

    
    
    /root/D/main.py
    /root/T/test.py
    /root/T/__init__.py
    

My `main.py` imports:

    
    
    from T import test
    

I executed the `main.py` from command line:

    
    
    > export PYTHONPATH=/cygdrive/root/T
    > cd /root/D
    > python main.py
    

I get error: `ImportError: No module named T.`

How can I execute from command line without error?

Edit: The contents of the `__init__.py` is:

    
    
    from .test import *
    


Answer: Resolved it, the problem was Cygwin, I set `PYTHONPATH=/cygdrive/root` and the
proper way is `PYTHONPATH=c:/root`

