소스 검색

tools: Drop unnecessary use of __file__

There are few places where the path of the current modules is calculated
but not used. Drop them.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 3 년 전
부모
커밋
2b522f1e79
3개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 2
      tools/binman/entry.py
  2. 0 3
      tools/buildman/test.py
  3. 0 3
      tools/rmboard.py

+ 0 - 2
tools/binman/entry.py

@@ -16,8 +16,6 @@ from patman import tout
 
 modules = {}
 
-our_path = os.path.dirname(os.path.realpath(__file__))
-
 
 # An argument which can be passed to entries on the command line, in lieu of
 # device-tree properties.

+ 0 - 3
tools/buildman/test.py

@@ -9,9 +9,6 @@ import tempfile
 import time
 import unittest
 
-# Bring in the patman libraries
-our_path = os.path.dirname(os.path.realpath(__file__))
-
 from buildman import board
 from buildman import bsettings
 from buildman import builder

+ 0 - 3
tools/rmboard.py

@@ -28,9 +28,6 @@ import os
 import re
 import sys
 
-# Bring in the patman libraries
-our_path = os.path.dirname(os.path.realpath(__file__))
-
 from patman import command
 
 def rm_kconfig_include(path):