mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-13 17:43:50 +01:00
Minor change in Python scripts
This commit is contained in:
parent
f4e305c0a4
commit
34f701f8cd
@ -1,14 +1,15 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
import os
|
||||
from qp_path import QP_SRC
|
||||
|
||||
Pert_dir = os.environ["QP_ROOT"]+"/src/perturbation/"
|
||||
Pert_dir = os.path.join(QP_SRC,"perturbation")
|
||||
|
||||
perturbations = []
|
||||
|
||||
for filename in filter(lambda x: x.endswith(".irp.f"), os.listdir(Pert_dir)):
|
||||
|
||||
filename = Pert_dir+filename
|
||||
filename = os.path.join(Pert_dir,filename)
|
||||
file = open(filename,'r')
|
||||
lines = file.readlines()
|
||||
file.close()
|
||||
|
Loading…
Reference in New Issue
Block a user