Commit 1736344b authored by Gabriel Monnerat's avatar Gabriel Monnerat

fixup! [SlapOS Core] Improve configure-local command and add test for this command

To copy those files we should check first if exists because after generate the
egg those files does not exist anymore and it blocks to install the package
parent 5c6ca9be
...@@ -14,8 +14,10 @@ for f in sorted(glob.glob(os.path.join('slapos', 'README.*.txt'))): ...@@ -14,8 +14,10 @@ for f in sorted(glob.glob(os.path.join('slapos', 'README.*.txt'))):
slapos_folder_path = os.path.dirname(__file__) slapos_folder_path = os.path.dirname(__file__)
for template_name in ('slapos-client.cfg.example', for template_name in ('slapos-client.cfg.example',
'slapos-proxy.cfg.example', 'slapos.cfg.example'): 'slapos-proxy.cfg.example', 'slapos.cfg.example'):
copyfile(os.path.join(slapos_folder_path, template_name), template_path = os.path.join(slapos_folder_path, template_name)
os.path.join(slapos_folder_path, 'slapos', template_name)) if os.path.exists(template_path):
copyfile(template_path,
os.path.join(slapos_folder_path, 'slapos', template_name))
additional_install_requires = [] additional_install_requires = []
# Even if argparse is available in python2.7, some python2.7 installations # Even if argparse is available in python2.7, some python2.7 installations
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment