Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:hp:education
MultiplicationStation
MultiplicationStation-use_local_home.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File MultiplicationStation-use_local_home.patch of Package MultiplicationStation
Index: MultiplicationStation/cfgctrl.py =================================================================== --- MultiplicationStation/cfgctrl.py.orig +++ MultiplicationStation/cfgctrl.py @@ -147,9 +147,10 @@ if self.global_config.has_key('distribution'):del self.global_config['distribution'] if self.global_config.has_key('scoring'):del self.global_config['scoring'] - - oufdir=os.path.join(self.env.configdir,self.tab_name,self.global_config['CFGNAME']) - if not os.path.exists(oufdir):return#returns on GPL and Asymptopia (continues for Globals) + #oufdir=os.path.join(self.env.configdir,self.tab_name,self.global_config['CFGNAME']) + oufdir=os.path.join(os.environ['HOME'],'.config/'+self.global_config['APPNAME']) + #if not os.path.exists(oufdir):return#returns on GPL and Asymptopia (continues for Globals) + if not os.path.exists(oufdir):os.mkdir(oufdir) oufname=os.path.join(oufdir,'config') ouf=open(oufname,'w') rval=format_dict(self.global_config,0) @@ -279,7 +280,11 @@ sitepkgdir =self.env.sitepkgdir configdir =self.env.configdir if DEBUG:print configdir,intermediate_path,fname - infname=os.path.join(configdir,intermediate_path,fname) + infpath=os.path.join(os.environ['HOME'],'.config/'+self.global_config['APPNAME']) + if not os.path.exists(infpath): + infname=os.path.join(configdir,intermediate_path,fname) + else: + infname=os.path.join(infpath,fname) inf=open(str(infname)) content=inf.read() Index: MultiplicationStation/mstation.py =================================================================== --- MultiplicationStation/mstation.py.orig +++ MultiplicationStation/mstation.py @@ -777,6 +777,12 @@ configdir =self.env.configdir if DEBUG:print configdir,intermediate_path,fname infname=os.path.join(configdir,intermediate_path,fname) + infpath=os.path.join(os.environ['HOME'],'.config/MultiplicationStation') + 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