This is a dumb question probably but I can't find the answer, I'm probably searching for the wrong term or something at python.org.
I'm writing a bunch of classes to work with my LIRC remote, what do I have to do to set it up so I put the files in site-packages and then I can import them like:
import lirc.mpd as mpd
I've had a look at some of the setups that I already have from other packages, I'm guessing that the key is in the __init__.py file but I can't make any sense out of the contents. Any tips or even better links that point me in the right direction would be greatly appreciated.
if you don't wanna compile it to bytecode it's just to create a dir in site-packages and save the files in there with a __init__.py file, __init__.py is just a dummy file with no contents in it,
if you want to compile it to bytecode you should use distutils, i've learned these things the hard way (trial and error) so if you got more problems i'm sure i could help you,
edit: you can take a look at libpypac and lazy-pac-cli on my site for learning more about distutils
arch + gentoo + initng + python = enlisy
Hurray, thanks heaps!
I just created the blank __init__.py and now everything works like I wanted! I don't really think I need to worry about distutils, I'm just writing some scripts so that I can control as much of my computer's media functions as I can from my bed with my remote A nice Xosd menu would be good next, preferably in Python but anything that works will do. Pyosd isn't very mature and animenu won't compile with Xft enabled and it doesn't even work with the supplied example config so I guess I'll have to keep on looking