1
0
mirror of https://github.com/sashacmc/photo-importer.git synced 2024-11-24 08:02:14 +02:00

Remove legacy modules __main__

This commit is contained in:
Alexander Bushnev 2022-11-29 21:36:05 +01:00
parent 6a53fd74bd
commit b4f73697ba
3 changed files with 0 additions and 25 deletions

View File

@ -146,7 +146,3 @@ class TestFileProp(unittest.TestCase):
self.assertEqual(fp.type(), fileprop.GARBAGE)
self.assertEqual(fp.time(), None)
self.assertEqual(fp.ok(), False)
if __name__ == '__main__':
unittest.main()

View File

@ -114,15 +114,3 @@ class Importer(threading.Thread):
def log_text(self):
return self.__log.get_text()
if __name__ == '__main__':
import sys
log.initLogger()
imp = Importer(config.Config(), sys.argv[1], sys.argv[2], False)
imp.start()
imp.join()
print(imp.status())

View File

@ -163,12 +163,3 @@ class Rotator(object):
'good': self.__good,
'errors': self.__errors,
}
if __name__ == '__main__':
import sys
rot = Rotator(config.Config(), sys.argv[1:], False)
rot.run()
print(rot.status())