forked from platformio/platformio-core
Minor fixes
This commit is contained in:
@ -160,6 +160,7 @@ class ContentCache(object):
|
|||||||
os.makedirs(self.cache_dir)
|
os.makedirs(self.cache_dir)
|
||||||
self._lockfile = LockFile(self.cache_dir)
|
self._lockfile = LockFile(self.cache_dir)
|
||||||
if self._lockfile.is_locked() and \
|
if self._lockfile.is_locked() and \
|
||||||
|
isfile(self._lockfile.lock_file) and \
|
||||||
(time() - getmtime(self._lockfile.lock_file)) > 10:
|
(time() - getmtime(self._lockfile.lock_file)) > 10:
|
||||||
self._lockfile.break_lock()
|
self._lockfile.break_lock()
|
||||||
|
|
||||||
|
@ -59,7 +59,12 @@ class ProjectGenerator(object):
|
|||||||
|
|
||||||
@util.memoized
|
@util.memoized
|
||||||
def get_project_build_data(self):
|
def get_project_build_data(self):
|
||||||
data = {"defines": [], "includes": [], "cxx_path": None}
|
data = {
|
||||||
|
"defines": [],
|
||||||
|
"includes": [],
|
||||||
|
"cxx_path": None,
|
||||||
|
"prog_path": None
|
||||||
|
}
|
||||||
envdata = self.get_project_env()
|
envdata = self.get_project_env()
|
||||||
if not envdata:
|
if not envdata:
|
||||||
return data
|
return data
|
||||||
|
Reference in New Issue
Block a user