Subversion Repositories SmartDukaan

Rev

Rev 5401 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5401 Rev 5761
Line 6... Line 6...
6
import json
6
import json
7
 
7
 
8
class WatchListManager:
8
class WatchListManager:
9
 
9
 
10
    def __init__(self):
10
    def __init__(self):
11
        self.watchlistFilePath = '/tmp/price-comp-dashboard/watchlist.json'
11
        self.watchlistFilePath = '/usr/price-comp-dashboard/watchlist.json'
12
    
12
    
13
    def getWatchlist(self):
13
    def getWatchlist(self):
14
        try:
14
        try:
15
            f = open(self.watchlistFilePath, 'r')
15
            f = open(self.watchlistFilePath, 'r')
16
            jsonStr = f.read() 
16
            jsonStr = f.read()