Skip to content

Commit

Permalink
create cache file if does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavol Ipoth committed Oct 4, 2015
1 parent 28267e3 commit 0032c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systeminfo/proc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def createCache(self):
"""

cache_file = self.cacheDir + self.__class__.__name__.lower() + '.cache'
cache_file_obj = open(cache_file, 'w')
cache_file_obj = open(cache_file, 'w+')

# pickling asset data
pickle.dump(self.asset_info, cache_file_obj)
Expand Down

0 comments on commit 0032c28

Please sign in to comment.