Made it possible to import pesterchum without it trying to run conventionally.

This commit is contained in:
karxi 2016-11-13 20:29:27 -05:00
parent bf0bf78696
commit ed38d54e82

View file

@ -3075,5 +3075,7 @@ Click this message to never see this again.")
self.showLoading(self.widget)
sys.exit(self.app.exec_())
pesterchum = MainProgram()
pesterchum.run()
if __name__ == "__main__":
# We're being run as a script - not being imported.
pesterchum = MainProgram()
pesterchum.run()