'Standard' duplicate imports
I had to point this out hoping to get some feedback/. Below is the source of the start_client.py for Standard. My question is .. Why import all of os, end then import os.path? You don't even use the import 'path', you use os.path.
Another question, why import 100% of os when you are using chdir, and path? Same thing with sys, why import all of it when all you use is argv?
The duplicate made me curious.
Code:
#!/usr/bin/env python
import sys
import os, os.path
import runpy
runpy.run_module('updater.gui', run_name='__main__', alter_sys=True)
import pyver
pyver.checkPyVersion()
from orpg.orpg_wx import *
import orpg.main
from orpg.tools.orpg_log import logger
if __name__ == "__main__":
os.chdir(os.path.abspath(os.path.dirname(sys.argv[0])))
if WXLOADED:
mainapp = orpg.main.orpgApp(0)
mainapp.MainLoop()
else:
logger.exception("You really really need wx!")