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:
parent
6a53fd74bd
commit
b4f73697ba
@ -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()
|
||||
|
@ -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())
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user