further restructuring of flashtool
This commit is contained in:
parent
f12d6267b4
commit
247f96e2ba
|
@ -1,7 +1,9 @@
|
||||||
|
try:
|
||||||
import flashtool.esptool as esptool
|
import esptool
|
||||||
|
except:
|
||||||
|
import flashtool.esptool as esptool
|
||||||
import os
|
import os
|
||||||
from flashtool.version import VERSION
|
VERSION="2.1"
|
||||||
|
|
||||||
class Flasher():
|
class Flasher():
|
||||||
def getVersion(self):
|
def getVersion(self):
|
||||||
|
|
|
@ -26,7 +26,7 @@ class MyFinder(importlib.abc.MetaPathFinder):
|
||||||
def find_spec(self,fullname, path, target=None):
|
def find_spec(self,fullname, path, target=None):
|
||||||
if fullname == self.pkg:
|
if fullname == self.pkg:
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print("F:matching %"%fullname)
|
print("F:matching %s"%fullname)
|
||||||
spec=importlib.util.spec_from_file_location(fullname, self.dir,loader=MyLoader(), submodule_search_locations=[self.dir])
|
spec=importlib.util.spec_from_file_location(fullname, self.dir,loader=MyLoader(), submodule_search_locations=[self.dir])
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print("F:injecting:",spec)
|
print("F:injecting:",spec)
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
VERSION="2.1"
|
|
Loading…
Reference in New Issue