diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-12-28 17:12:41 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-12-28 17:12:41 +0100 | 
| commit | 56597a6a68e741355b301f91d5913d59cfb34eaa (patch) | |
| tree | 7531e41faf62f126984bf05b8d712f99c9520d5d /bin/docs-update-generated.py | |
| parent | 56337453f0f3fbe34255e636d5d65974f4d17681 (diff) | |
New upstream version 3.1.2upstream/3.1.2upstream
Diffstat (limited to 'bin/docs-update-generated.py')
| -rw-r--r-- | bin/docs-update-generated.py | 17 | 
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/docs-update-generated.py b/bin/docs-update-generated.py index c164baf..78b60a7 100644 --- a/bin/docs-update-generated.py +++ b/bin/docs-update-generated.py @@ -10,6 +10,8 @@ from __future__ import print_function  import os  import sys +import subprocess +  import SConsDoc  # Directory where all generated files are stored @@ -17,8 +19,8 @@ gen_folder = os.path.join('doc','generated')  def argpair(key):      """ Return the argument pair *.gen,*.mod for the given key. """ -    arg = '%s,%s' % (os.path.join(gen_folder,'%s.gen' % key), -                     os.path.join(gen_folder,'%s.mod' % key)) +    arg = '%s,%s' % (os.path.join(gen_folder, '%s.gen' % key), +                     os.path.join(gen_folder, '%s.mod' % key))      return arg @@ -43,10 +45,13 @@ def generate_all():                  print("Couldn't create destination folder %s! Exiting..." % gen_folder)                  return          # Call scons-proc.py -        os.system('%s %s -b %s -f %s -t %s -v %s %s' % -                  (sys.executable, os.path.join('bin','scons-proc.py'), -                   argpair('builders'), argpair('functions'), -                   argpair('tools'), argpair('variables'), ' '.join(flist))) +        _ = subprocess.call([sys.executable, +                              os.path.join('bin','scons-proc.py'), +                              '-b', argpair('builders'), +                              '-f', argpair('functions'), +                              '-t', argpair('tools'), +                              '-v', argpair('variables')] + flist, +                             shell=False)  if __name__ == "__main__":  | 
