Remove import warnings of imager.fs module
authorHuang Hao <hao.h.huang@intel.com>
Fri, 22 Feb 2013 10:42:39 +0000 (18:42 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Fri, 22 Feb 2013 10:44:06 +0000 (18:44 +0800)
* sys and subprocess are useless
* avoid to import * from utils.fs_related
* import baseimager in absolute way

Change-Id: I44c970402f06da32a576c68d4650dd7dd010fa1c

mic/imager/fs.py

index e9ef00e..d53b29c 100644 (file)
 # with this program; if not, write to the Free Software Foundation, Inc., 59
 # Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-import os, sys
+import os
 
-from baseimager import BaseImageCreator
 from mic import msger
 from mic.utils import runner, misc
-from mic.utils.fs_related import *
-from subprocess import call
+from mic.utils.errors import CreatorError
+from mic.utils.fs_related import find_binary_path
+from mic.imager.baseimager import BaseImageCreator
 
 class FsImageCreator(BaseImageCreator):
     def __init__(self, cfgmgr = None, pkgmgr = None):