made the peter requested changes
This commit is contained in:
parent
52b6d14ab2
commit
fddd054d56
|
@ -1,6 +1,5 @@
|
||||||
Kivy==2.0.0
|
kivy-garden.qrcode
|
||||||
kivy-garden.qrcode==2021.314
|
|
||||||
-e git+https://github.com/kivymd/KivyMD#egg=kivymd
|
-e git+https://github.com/kivymd/KivyMD#egg=kivymd
|
||||||
opencv-python==4.5.1.48
|
opencv-python
|
||||||
pyzbar==0.1.8
|
pyzbar
|
||||||
telenium==0.5.0
|
telenium
|
|
@ -19,18 +19,16 @@ tmp_db_file = (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def cleanup(home=None, files=_files):
|
def cleanup(files=_files):
|
||||||
"""Cleanup application files"""
|
"""Cleanup application files"""
|
||||||
if not home:
|
|
||||||
home = tempfile.gettempdir()
|
|
||||||
for pfile in files:
|
for pfile in files:
|
||||||
try:
|
try:
|
||||||
os.remove(os.path.join(home, pfile))
|
os.remove(os.path.join(tempfile.gettempdir(), pfile))
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def set_temp_data():
|
def populate_test_data():
|
||||||
"""Set temp data in tmp directory"""
|
"""Set temp data in tmp directory"""
|
||||||
for file_name in tmp_db_file:
|
for file_name in tmp_db_file:
|
||||||
old_source_file = os.path.join(
|
old_source_file = os.path.join(
|
||||||
|
@ -47,7 +45,7 @@ class TeleniumTestProcess(TeleniumTestCase):
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
"""Setupclass is for setting temp environment"""
|
"""Setupclass is for setting temp environment"""
|
||||||
os.environ["BITMESSAGE_HOME"] = tempfile.gettempdir()
|
os.environ["BITMESSAGE_HOME"] = tempfile.gettempdir()
|
||||||
set_temp_data()
|
populate_test_data()
|
||||||
super(TeleniumTestProcess, cls).setUpClass()
|
super(TeleniumTestProcess, cls).setUpClass()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
@ -6,18 +6,17 @@ from threads import sqlThread
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
if state.enableObjProc:
|
# Start the address generation thread
|
||||||
# Start the address generation thread
|
addressGeneratorThread = FakeAddressGenerator()
|
||||||
addressGeneratorThread = FakeAddressGenerator()
|
# close the main program even if there are threads left
|
||||||
# close the main program even if there are threads left
|
addressGeneratorThread.daemon = True
|
||||||
addressGeneratorThread.daemon = True
|
addressGeneratorThread.start()
|
||||||
addressGeneratorThread.start()
|
|
||||||
|
|
||||||
sqlLookup = sqlThread()
|
sqlLookup = sqlThread()
|
||||||
# DON'T close the main program even if there are threads left.
|
# DON'T close the main program even if there are threads left.
|
||||||
# The closeEvent should command this thread to exit gracefully.
|
# The closeEvent should command this thread to exit gracefully.
|
||||||
sqlLookup.daemon = False
|
sqlLookup.daemon = False
|
||||||
sqlLookup.start()
|
sqlLookup.start()
|
||||||
|
|
||||||
state.kivyapp = NavigateApp()
|
state.kivyapp = NavigateApp()
|
||||||
state.kivyapp.run()
|
state.kivyapp.run()
|
||||||
|
|
Reference in New Issue
Block a user