This commit is contained in:
flaskfarm
2022-10-04 15:04:41 +09:00
parent 1c4aea7d70
commit d82b640a79
5 changed files with 8 additions and 288 deletions

View File

@@ -12,7 +12,7 @@ sys.path.insert(1, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib
try:
from framework import frame
if __name__ == '__main__':
if __name__ in ['__main__', 'flaskfarm.main']:
frame.start()
else:
app = frame.app