How to include third party Python packages in Sublime Text 2 plugins

后端 未结 2 2003
天涯浪人
天涯浪人 2020-12-08 00:33

I\'m writing a sublime text 2 plugin that uses a module SEAPI.py which in itself imports the requests module.

Since sublime text 2 uses it\'s own embedded python int

2条回答
  •  孤城傲影
    2020-12-08 01:15

    Mikko's answer is good, but I may have found a slightly easier way:

    import MyAwesomePlugin.requests
    

    "MyAwesomePlugin" being the name of your plugin, of course.

提交回复
热议问题