Put a stern warning about imports in main.py
And make sure the shebang line comes first
This commit is contained in:
parent
685031494a
commit
355346db7b
@ -1,7 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
main.py
|
||||
|
||||
This is the main entry point of the MCEdit application.
|
||||
|
||||
The order of every statement in this file is important, including import statements. If
|
||||
you do an "organize imports" on this file, I will kill you.
|
||||
"""
|
||||
#!/usr/bin/env python
|
||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||
import sys
|
||||
|
||||
@ -167,6 +172,5 @@ def main():
|
||||
app = startup()
|
||||
sys.exit(app.exec_())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Reference in New Issue
Block a user