/[ascend]/trunk/pygtk/interface/preferences.py
ViewVC logotype

Diff of /trunk/pygtk/interface/preferences.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 356 by johnpye, Mon Mar 6 03:43:04 2006 UTC revision 357 by johnpye, Mon Mar 6 06:30:21 2006 UTC
# Line 2  Line 2 
2    
3  import ConfigParser, os  import ConfigParser, os
4  import re  import re
5    import platform
6    
7  class Preferences:  class Preferences:
8      __sharedstate = {}      __sharedstate = {}
# Line 11  class Preferences: Line 12  class Preferences:
12    
13          if not hasattr(self,'n'):          if not hasattr(self,'n'):
14              self.n = 0;              self.n = 0;
15              self.fname = os.path.expanduser("~/.ascend.ini");              if platform.system()=="Windows":
16                    self.fname = os.path.join(os.environ['APPDATA'],".ascend.ini")
17                else:
18                    self.fname = os.path.expanduser("~/.ascend.ini");
19    
20                print "PREFERENCES FILE:",self.fname
21                    
22          self.n = self.n + 1;          self.n = self.n + 1;
23    
24          if not hasattr(self,'ini'):          if not hasattr(self,'ini'):

Legend:
Removed from v.356  
changed lines
  Added in v.357

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22