Ignore:
Timestamp:
Apr 7, 2017, 11:52:32 AM (4 years ago)
Author:
hectorgh
Message:

fixing cache dirs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/MainMenu.py

    r4134 r4141  
    2525
    2626HOME_CONTENT_URL="http://svn.lliurex.net/xenial/lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/rsrc/home_content.json"
    27 #HOME_CONTENT_URL="file:///srv/svn/xenial/lliurex-store/trunk/fuentes/lliurex-store-gui/home_content.json"
    28 #TMP_STORE_DIR="/tmp/.lliurex-store/"
    29 TMP_STORE_DIR=os.path.expanduser("~/.cache/")
     27
    3028
    3129class MainMenu(Gtk.VBox):
     
    120118                        res=urllib2.urlopen(req)
    121119                       
    122                         f=open(TMP_STORE_DIR+"home_content.json","w")
     120                        f=open(self.core.tmp_store_dir+"home_content.json","w")
    123121                        f.write(res.read().decode("utf-8"))
    124122                        f.close()
    125123                       
    126124                       
    127                         f=open(TMP_STORE_DIR+"home_content.json")
     125                        f=open(self.core.tmp_store_dir+"home_content.json")
    128126                        self.home_info=json.load(f)
    129127                       
Note: See TracChangeset for help on using the changeset viewer.