Added some f strings

This commit is contained in:
Laurence 2019-07-08 16:34:42 +02:00
parent 059f50e459
commit b3b6858c52
1 changed files with 7 additions and 7 deletions

View File

@ -343,7 +343,7 @@ def install_boinc_files(dest_dir, install_web_files, install_server_files):
install_glob(srcdir('html/languages/translations/*.po'), dest('html/languages/translations/'))
# copy Python stuff
install(srcdir('sched','start' ), dest('bin','start' ))
install(srcdir('sched/start' ), dest('bin/start' ))
force_symlink(dest('bin', 'start'), dest('bin', 'stop'))
force_symlink(dest('bin', 'start'), dest('bin', 'status'))
python_files = [
@ -362,7 +362,7 @@ def install_boinc_files(dest_dir, install_web_files, install_server_files):
'util.py'
]
for f in python_files:
install(srcdir('py/Boinc',f), dest('py/Boinc',f))
install(srcdir(f'py/Boinc/{f}'), dest(f'py/Boinc/{f}'))
content = '''
# Generated by make_project
@ -424,10 +424,10 @@ sys.path.insert(0, os.path.join('{dest_dir}', 'py'))
'wu_check',
]
for f in command:
install(builddir('sched',f), dest('bin',f))
install(builddir(f'sched/{f}'), dest('bin',f))
command = [ 'vda', 'vdad' ]
for f in command:
install(builddir('vda',f), dest('bin',f))
install(builddir(f'vda/{f}'), dest('bin',f))
command = [
'appmgr',
'boinc_submit',
@ -450,9 +450,9 @@ sys.path.insert(0, os.path.join('{dest_dir}', 'py'))
'xadd',
]
for f in command:
install(builddir('vda',f), dest('bin',f))
install(srcdir('lib','crypt_prog'), dest('bin','crypt_prog'))
install(srcdir('sched','db_dump_spec.xml' ), dest('','db_dump_spec.xml' ))
install(builddir(f'vda/{f}'), dest('bin',f))
install(srcdir('lib/crypt_prog'), dest('bin','crypt_prog'))
install(srcdir('sched/db_dump_spec.xml' ), dest('','db_dump_spec.xml' ))
class Project:
def __init__(self,