Anonymous avatar Anonymous committed be45b5c

contl10n01: minor fixes

Comments (0)

Files changed (1)

l10ntools/scripts/tool/commands.py

                 try:
                     lines = [line.strip('\n') for line in zfile.readlines()]           
                     zfile.close()
-                    os.remove(file[:file.rfind(".gz")])
                     try:
-                        self._log.info("Unzipping "+file+" to "+file[:file.rfind(".gz")])
+                        self._log.info("Unzipping "+file)
                         f = open(file[:file.rfind(".gz")], "w")
                         for line in lines:
                             f.write(line+"\n")
         if self.is_repository_created(self._cws_name, 120) == False:
             self.log.die("Repository for cws "+self._cws_name+" is not created! Giving up after waiting 120 minutes")
 
+        if self._cws_root[1] == ":":
+            self._cws_root = "/cygdrive/" + self._cws_root[0] + self._cws_root[2:]
+
         myui = ui.ui()
         repo = hg.repository(myui, self._cws_root + "/" )
         ### hg add ###
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.