Thanks for the help but I'm still a bit stuck.... At the moment, my WIP plugin is living in: /usr/local/freevo/src/plugins
I am running it by just running ./freevo (and i've modified the blue1_big.fxd skin to include it as another main menu selection) My code is found okay and runs, it's just that when it imports another module such as "import audiodiskitem.py" the log shows that it could not find audiodiskitem.py (which is in src/audio/audiodiskitem.py) , thus I have been having to just copy this file (and all it's dependencies) into /src/plugins where my own module resides. >From looking at the main 'freevo' file, it exports PYTHONPATH=./src when freevo is being compiled/installed. Thus I copied my files from the install directory I'm working out of to where I have the freevo source from CVS and recompiled/installed but that didn't seem to help either. FYI, i'm trying to write a filemanager type plugin to rip CDs to the hard drive, and burn MP3s onto CD. If someone is already doing this, I'll probably carry on with it anyhow just so I can learn Python and the inner workings of Freevo better. Thanks, Rich Rich C wrote: > Hello All, Hi Rich, > > I'm trying to write my own plugin, for which I'm > importing alot of the other modules that you guys have > written. I'm having a problem that any time I > "import module" and run freevo it doesn't seem to know > that any other modules I import from my plugin exist > unless I copy them into the directory that I'm using > for my plugin. Any ideas on how I go about fixing > this - I dont' see any other module doing anything > special to import other modules? How re you running / testing your plugin? If you are running it on the command line you will either need to export your PYTHONPATH environment variable to include those directories with desired modules, or test your plugin using ./freevo execute path/to/plugin.py. If you look in the freevo script you should see a PYTHONPATH line as well. If you are seeing this problem within freevo itself that may mean the module you are looking for lives in a direcory besides those in freevo's PYTHONPATH. You can either try adding more directories to it or reference your file differently, like tv.modulename instead of modulename (BTW both of those should work because src/tv is in Freevo's PYTHONPATH, but others may not. Hope this helps... I am tired and need sleep. :) -Rob --- Rich C <[EMAIL PROTECTED]> wrote: > Hello All, > > I'm trying to write my own plugin, for which I'm > importing alot of the other modules that you guys > have > written. I'm having a problem that any time I > "import module" and run freevo it doesn't seem to > know > that any other modules I import from my plugin exist > unless I copy them into the directory that I'm using > for my plugin. Any ideas on how I go about fixing > this - I dont' see any other module doing anything > special to import other modules? > > From the python.org tutorial web page there is some > info about sys.path and default python setup paths > that are searched but it didn't seem to apply since > other modules you guys wrote can call each other > without any special path being setup. > > Thanks, > Rich > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to > Outlook(TM). > http://calendar.yahoo.com > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
