X-Received: by 10.66.172.36 with SMTP id az4mr1384172pac.38.1362029367829; Wed, 27 Feb 2013 21:29:27 -0800 (PST) X-Received: by 10.50.6.135 with SMTP id b7mr906072iga.9.1362029367767; Wed, 27 Feb 2013 21:29:27 -0800 (PST) Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!us.feeder.erje.net!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!su1no15444204pbb.0!news-out.google.com!jm3ni23191pbb.0!nntp.google.com!su1no15444198pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Wed, 27 Feb 2013 21:29:27 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=115.111.146.130; posting-account=bX1uqAoAAAD3lzOsA-J0fvEQGjmCl4Ro NNTP-Posting-Host: 115.111.146.130 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: How to edit offline vmx file using python From: sasikiran2k7@gmail.com Injection-Date: Thu, 28 Feb 2013 05:29:27 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:40109 Hi, I am new to python, how can we edit a .vmx file offline or just simply a file containing the data in the below format. My file sample.vmx contains data pciBridge7.virtualDev = "pcieRootPort" pciBridge7.functions = "8" vmci0.present = "TRUE" hpet0.present = "TRUE" nvram = "testvmdk.nvram" virtualHW.productCompatibility = "hosted" powerType.powerOff = "soft" powerType.powerOn = "hard" I need to update those values and the updated file should contains the data pciBridge7.virtualDev = "pcieRootPort" pciBridge7.functions = "8" vmci0.present = "TRUE" hpet0.present = "TRUE" nvram = "testing.nvram" virtualHW.productCompatibility = "hosted" powerType.poweroff='hard" powerType.poweron="sof't" Can anyone please help me in solving this problem Thanks, Sasikiran