[webkitpy] PlatformInfo should have default argument for casual use
[WebKit-https.git] / Tools / Scripts / webkitpy / common / system / systemhost.py
index cb84193fde6964928151b0c6f90ead9552178f50..a15342201d833414731ebd0f76f7179a6f0bd6e3 100644 (file)
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 import os
-import platform
-import sys
 
-from webkitpy.common.system import environment, executive, file_lock, filesystem, platforminfo, user, workspace
+from . import environment, executive, file_lock, filesystem, platforminfo, user, workspace
 
 
 class SystemHost(object):
     def __init__(self):
         self.executive = executive.Executive()
         self.filesystem = filesystem.FileSystem()
-        self.user = user.User()
-        self.platform = platforminfo.PlatformInfo(sys, platform, self.executive)
+        self.platform = platforminfo.PlatformInfo(executive=self.executive)
+        self.user = user.User(self.platform)
         self.workspace = workspace.Workspace(self.filesystem, self.executive)
 
     def copy_current_environment(self):