Saturday, December 08, 2012

Permission and PSP Import

If you have a PSP page and you're trying to import a custom module and you get an error like this:

ImportError: No module named mymodule


You can do one of two things:

1. search all around the interwebs to figure out what the path is supposed to be and how to fix it

2. check the permission of mymodule.py...

-rw------- 1 me me 1413 Dec  7 21:00 mymodule.py

and of course the fix is easy! 

$ chmod 644 mymodule.py

Module Accomplished!!

No comments: