Move default rqfile to rq directory
This commit is contained in:
parent
a339a2614e
commit
e0f53fd6ad
@ -2,4 +2,3 @@ recursive-include rq *
|
||||
recursive-include doc *
|
||||
include README.md
|
||||
include config.yaml
|
||||
include rq.yaml
|
2
setup.py
2
setup.py
@ -24,7 +24,7 @@ pname = project_name
|
||||
dtm = os.path.join(os.path.abspath(os.sep), 'usr', 'share', pname)
|
||||
rqfiles = [(os.path.join(dtm, root), [os.path.join(root, f) for f in files])
|
||||
for root, dirs, files in os.walk('rq')]
|
||||
rqfiles.append((os.path.join(dtm, 'configs'), ['config.yaml', 'rq.yaml']))
|
||||
rqfiles.append((os.path.join(dtm, 'configs'), ['config.yaml']))
|
||||
package_data = True
|
||||
|
||||
if os.environ.get("READTHEDOCS", False):
|
||||
|
@ -39,15 +39,13 @@ def load_conf(filename):
|
||||
conf['timeout'] = 15
|
||||
conf['prefix'] = 'nice -n 19 ionice -c 3'
|
||||
rqdir = 'rq'
|
||||
rqfile = 'rq.yaml'
|
||||
rqfile = 'rq/default.yaml'
|
||||
dtm = os.path.join(os.path.abspath(os.sep), 'usr', 'share', 'timmy')
|
||||
if os.path.isdir(os.path.join(dtm, rqdir)):
|
||||
conf['rqdir'] = os.path.join(dtm, rqdir)
|
||||
conf['rqfile'] = os.path.join(conf['rqdir'], rqfile)
|
||||
else:
|
||||
conf['rqdir'] = rqdir
|
||||
if os.path.isfile(os.path.join(dtm, 'configs', rqfile)):
|
||||
conf['rqfile'] = os.path.join(dtm, 'configs', rqfile)
|
||||
else:
|
||||
conf['rqfile'] = rqfile
|
||||
conf['compress_timeout'] = 3600
|
||||
conf['outdir'] = os.path.join(gettempdir(), 'timmy', 'info')
|
||||
|
@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
|
||||
project_name = 'timmy'
|
||||
version = '1.12.0'
|
||||
version = '1.12.2'
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user