Home Download Buy Blog Forum Support

load custom libraries

load custom libraries

Postby spadgos on Tue Mar 27, 2012 10:57 pm

is it possible to load whatever python libraries I want inside a plugin? I'm just playing around with a hack for fun and want to use some libraries I installed via "easy_install". For example, in the terminal I ran this:

Code: Select all
$ easy_install pyglet
$ python
> import pyglet

and that works fine. What should I do to access that library inside Sublime Text? Since it's just a hack, I really don't mind how ugly or unmaintainable it is...
Posts: 121
Joined: Thu Oct 06, 2011 12:49 am

Re: load custom libraries

Postby C0D312 on Tue Mar 27, 2012 11:00 pm

Yep. You can import anything. The only real issue is if you want to package it to people who may not have the dependencies install.
Posts: 1056
Joined: Sun Jul 10, 2011 3:23 am

Re: load custom libraries

Postby bizoo on Wed Mar 28, 2012 4:53 am

Posts: 958
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 7 guests