Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit a015d64

Browse files
code cleanup
1 parent e9645a2 commit a015d64

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

search_in_project.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import sublime
22
import sublime_plugin
33
import 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]))
910
if 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")))
1314
if cmd_subfolder not in sys.path:
1415
sys.path.insert(0, cmd_subfolder)
1516
# Info:
@@ -22,6 +23,7 @@
2223

2324
basedir = os.getcwd()
2425

26+
2527
class SearchInProjectCommand(sublime_plugin.WindowCommand):
2628
def __init__(self, window):
2729
sublime_plugin.WindowCommand.__init__(self, window)

0 commit comments

Comments
 (0)