[CF-Devel] Questions about plugin code

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Mon Oct 18 20:07:11 CDT 2004


This looks like a good way to do it, thanks.

sys.path is a list so you can just use insert to place your path
anywhere in the list- I would insert it in the second position (path 0
is " ")
so you can use:

sys.path.insert(1,os.path.join(CFPython.GetDataDirectory(),
CFPython.GetMapDirectory(), 'python'))


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list