Lines Matching refs:os
7 import os
31 os.environ['IDF_MAINTAINER'] = '1'
57 with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'tools.json')) as f:
78 …old_tools_dir = os.environ.get('IDF_TOOLS_PATH') or os.path.expanduser(idf_tools.IDF_TOOLS_PATH_DE…
81 if os.path.exists(old_tools_dir):
82 …mirror_prefix_map = 'https://dl.espressif.com/dl/toolchains/preview,file://' + os.path.join(old_to…
84 … mirror_prefix_map += ';https://dl.espressif.com/dl,file://' + os.path.join(old_tools_dir, 'dist')
85 …rror_prefix_map += ';https://github.com/espressif/.*/releases/download/.*/,file://' + os.path.join(
89 os.environ['IDF_MIRROR_PREFIX_MAP'] = mirror_prefix_map
94 os.environ['IDF_TOOLS_PATH'] = cls.temp_tools_dir
101 if os.path.isdir(os.path.join(self.temp_tools_dir, 'dist')):
102 shutil.rmtree(os.path.join(self.temp_tools_dir, 'dist'))
104 if os.path.isdir(os.path.join(self.temp_tools_dir, 'tools')):
105 shutil.rmtree(os.path.join(self.temp_tools_dir, 'tools'))
107 if os.path.isfile(os.path.join(self.temp_tools_dir, 'idf-env.json')):
108 os.remove(os.path.join(self.temp_tools_dir, 'idf-env.json'))
155 self.assertIn('to ' + os.path.join(self.temp_tools_dir, 'dist'), output)
193 self.assertIn('to ' + os.path.join(self.temp_tools_dir, 'dist'), output)
227 self.assertIn('to ' + os.path.join(self.temp_tools_dir, 'dist'), output)
260 self.assertIn('to ' + os.path.join(self.temp_tools_dir, 'dist'), output)
294 self.assertIn('to ' + os.path.join(self.temp_tools_dir, 'dist'), output)
325 idf_path = os.getenv('IDF_PATH')
328 with open(os.path.join(idf_path, 'tools/tools.json'), 'r') as f:
330 with open(os.path.join(idf_path, 'tools/tools.new.json'), 'r') as f: