[Tutor] Relative import help

Matthew Ngaha chigga101 at gmail.com
Sat Sep 22 16:07:34 CEST 2012


> try
> import ../my_module
> instead of
> import ..my_module
> and see what happens.
> Your problem may be just that you haven't included the separator.
>
> .. means one directory higher but you must separate it from the file name.
>
> Two directories higher would be
> ../../my_module


sadly this was invalid syntax:(


More information about the Tutor mailing list