Differences
This shows you the differences between the selected revision and the current version of the page.
| skype:code:skypehistory.py 2008/03/02 23:13 | skype:code:skypehistory.py 2008/03/02 23:30 current | ||
| Line 130: | Line 130: | ||
| def skype_homes(): | def skype_homes(): | ||
| homes = [] | homes = [] | ||
| - | if os.environ["HOME"]: | + | if os.environ.has_key("HOME"): |
| path = os.path.join(os.environ["HOME"], ".Skype") | path = os.path.join(os.environ["HOME"], ".Skype") | ||
| for el in os.listdir(path): | for el in os.listdir(path): | ||
| Line 136: | Line 136: | ||
| if os.path.isdir(el_full): | if os.path.isdir(el_full): | ||
| homes.append(el_full) | homes.append(el_full) | ||
| - | if os.environ["APPDATA"]: | + | if os.environ.has_key("APPDATA"): # TODO: Test |
| path = os.path.join(os.environ["APPDATA"], ".Skype") | path = os.path.join(os.environ["APPDATA"], ".Skype") | ||
| for el in os.listdir(path): | for el in os.listdir(path): | ||
| Line 228: | Line 228: | ||
| self.dataset["Time"] = time.ctime(int(self.dataset["Timestamp"])) | self.dataset["Time"] = time.ctime(int(self.dataset["Timestamp"])) | ||
| return self.dataset | return self.dataset | ||
| + | |||
| </code> | </code> | ||