Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:hp:education
TuxWordSmith
TuxWordSmith-0.6.7-use-localdir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File TuxWordSmith-0.6.7-use-localdir.patch of Package TuxWordSmith
Index: TuxWordSmith/cfgctrl.py =================================================================== --- TuxWordSmith/cfgctrl.py.orig +++ TuxWordSmith/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: TuxWordSmith/tws.py =================================================================== --- TuxWordSmith/tws.py.orig +++ TuxWordSmith/tws.py @@ -1250,8 +1250,12 @@ class TuxWordSmith(TWSSolver): if DEBUG:pass if DEBUG:print configdir,intermediate_path,fname - + infpath=os.path.join(os.environ['HOME'],'.config/TuxWordSmith') 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) 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