Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:hp:education
TuxMathScrabble
TuxMathScrabble-0.5.7-use_localhome_for_config....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File TuxMathScrabble-0.5.7-use_localhome_for_config.patch of Package TuxMathScrabble
Index: TuxMathScrabble/cfgctrl.py =================================================================== --- TuxMathScrabble/cfgctrl.py.orig +++ TuxMathScrabble/cfgctrl.py @@ -152,7 +152,10 @@ class CfgCtrl(wx.Panel): if self.global_config.has_key('scoring'):del self.global_config['scoring'] oufdir=os.path.join(self.admin.env.configdir,self.name,self.global_config['CFGNAME']) - oufname=os.path.join(oufdir,'config') + #oufname=os.path.join(oufdir,'config') + path=os.path.join(os.environ['HOME'],'.config/'+self.global_config['APPNAME']) + if not os.path.exists(path):os.mkdir(path) + oufname=os.path.join(path,'config') ouf=open(oufname,'w') rval=format_dict(self.global_config,0) ouf.write(rval) Index: TuxMathScrabble/tms.py =================================================================== --- TuxMathScrabble/tms.py.orig +++ TuxMathScrabble/tms.py @@ -1159,7 +1159,13 @@ class TuxMathScrabble(TMSSolver): sitepkgdir =self.env.sitepkgdir configdir =self.env.configdir if DEBUG:print configdir,intermediate_path,fname + infpath=os.path.join(os.environ['HOME'],'.config/TuxMathScrabble') infname=os.path.join(configdir,intermediate_path,fname) + if not os.path.exists(infpath): + infname=os.path.join(configdir,intermediate_path,fname) + else: + infname=os.path.join(infpath,fname) + if DEBUG:print infname inf=open(infname) content=inf.read()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor