This repository was archived by the owner on Jan 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import sublime
22import sublime_plugin
33import os .path
4+ import os
5+ import sys
6+ import inspect
47
5-
6- import os , sys , inspect
78# realpath() with make your script run, even if you symlink it :)
8- cmd_folder = os .path .realpath (os .path .abspath (os .path .split (inspect .getfile ( inspect .currentframe () ))[0 ]))
9+ cmd_folder = os .path .realpath (os .path .abspath (os .path .split (inspect .getfile (inspect .currentframe ()))[0 ]))
910if cmd_folder not in sys .path :
1011 sys .path .insert (0 , cmd_folder )
1112# use this if you want to include modules from a subforder
12- cmd_subfolder = os .path .realpath (os .path .abspath (os .path .join (os .path .split (inspect .getfile ( inspect .currentframe () ))[0 ],"subfolder" )))
13+ cmd_subfolder = os .path .realpath (os .path .abspath (os .path .join (os .path .split (inspect .getfile (inspect .currentframe ()))[0 ], "subfolder" )))
1314if cmd_subfolder not in sys .path :
1415 sys .path .insert (0 , cmd_subfolder )
1516 # Info:
2223
2324basedir = os .getcwd ()
2425
26+
2527class SearchInProjectCommand (sublime_plugin .WindowCommand ):
2628 def __init__ (self , window ):
2729 sublime_plugin .WindowCommand .__init__ (self , window )
You can’t perform that action at this time.
0 commit comments