Updated script doc-dc
authorDamien Correia
Mon, 10 Dec 2018 18:16:35 +0100
branchdoc-dc
changeset 107 3de12781a168
parent 106 18d967067bfe
child 108 1de74ac0628f
Updated script
src/pyams_user_guide/scripts/__init__.py
--- a/src/pyams_user_guide/scripts/__init__.py	Mon Dec 10 14:19:03 2018 +0100
+++ b/src/pyams_user_guide/scripts/__init__.py	Mon Dec 10 18:16:35 2018 +0100
@@ -5,6 +5,7 @@
 
 packages_pyams = [
   'pyams_alchemy',
+  'pyams_apm',
   'pyams_cache',
   'pyams_catalog',
   'pyams_content',
@@ -47,5 +48,6 @@
         directory = p
         packages_pyams_source = os.path.join(*[path_project, p, 'src', directory])
         outputdir = os.path.join(output_directory, directory)
-        # Command line
-        main(shlex.split('-f -T -M --maxdepth=2 -o {} {}'.format(outputdir, packages_pyams_source)))
+        if os.path.isdir(packages_pyams_source):
+          # Command line
+          main(shlex.split('-f -T -M --maxdepth=2 -o {} {}'.format(outputdir, packages_pyams_source)))