diff --git a/scripts/update_README.py b/scripts/update_README.py index c530ae58..652d5904 100755 --- a/scripts/update_README.py +++ b/scripts/update_README.py @@ -136,10 +136,15 @@ def update_documentation(data): items = [] + dirname = os.path.basename(os.getcwd()) command = "git ls-tree --full-tree --name-only HEAD:src/%s" - command = command%(os.path.basename(os.getcwd())) + command = command%(dirname) try: - tracked_files = subprocess.check_output(command.split()) + if dirname != 'src': + p = subprocess.Popen(command.split(),stdout=subprocess.PIPE) + tracked_files = p.stdout.read() + else: + tracked_files = "" tracked_files = tracked_files.splitlines() except: tracked_files = [] diff --git a/src/README.rst b/src/README.rst index d7d9b4f9..6cacb87a 100644 --- a/src/README.rst +++ b/src/README.rst @@ -108,37 +108,6 @@ should be always checked. For example, when creating a directory the existence of the directory has to be checked. -Needed Modules -============== - -.. Do not edit this section. It was auto-generated from the -.. NEEDED_MODULES file. - -* `AOs `_ -* `BiInts `_ -* `Bitmask `_ -* `CISD `_ -* `CISD_SC2_selected `_ -* `CISD_selected `_ -* `DensityMatrix `_ -* `Dets `_ -* `Electrons `_ -* `Ezfio_files `_ -* `Full_CI `_ -* `Generators_full `_ -* `Hartree_Fock `_ -* `MOGuess `_ -* `MonoInts `_ -* `MOs `_ -* `MP2 `_ -* `Nuclei `_ -* `Output `_ -* `Perturbation `_ -* `SC2 `_ -* `Selectors_full `_ -* `SingleRefMethod `_ -* `Utils `_ - Documentation =============