Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2


Check-in [c03cbe2403]

Overview
Comment:Use absolute path for conf.share, and ensure it doesn't get overwritten from last value in settings.json.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c03cbe240394f4b3dffefe2c31c7acc2ef119209
User & Date: mario on 2015-03-29 16:40:18
Other Links: manifest | tags
Context
2015-03-29
16:41
Use __future__ print_function for file=sys.stderr descriptor usage. check-in: 109e332311 user: mario tags: trunk
16:40
Use absolute path for conf.share, and ensure it doesn't get overwritten from last value in settings.json. check-in: c03cbe2403 user: mario tags: trunk
15:07
Trivial update for Python 3. check-in: 92f88e7a9b user: mario tags: trunk
Changes

Modified config.py from [efa422aca3] to [1687cc55ba].

47
48
49
50
51
52
53
54
55
56
57
58


59
60
61
62
63
64
65
            self.__dict__ = self  # let's pray this won't leak memory due to recursion issues

            # prepare
            self.defaults()
            self.xdg()
            
            # runtime
            self.share = os.path.dirname(__file__)
            
            # settings from last session
            last = self.load("settings")
            if (last):


                self.update(last)
                self.migrate()
            # store defaults in file
            else:
                self.save("settings")
                self.firstrun = 1








|




>
>







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
            self.__dict__ = self  # let's pray this won't leak memory due to recursion issues

            # prepare
            self.defaults()
            self.xdg()
            
            # runtime
            self.share = os.path.dirname(os.path.abspath(__file__))
            
            # settings from last session
            last = self.load("settings")
            if (last):
                if "share" in last:
                    del last["share"]
                self.update(last)
                self.migrate()
            # store defaults in file
            else:
                self.save("settings")
                self.firstrun = 1