mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 21:03:45 +01:00
11d394fd5b
* moved the plovasp C++ code to c++/triqs_dft_tools/converters/vasp * added global header triqs_dft_tools/triqs_dft_tools.hpp * python dir based on single cmakelist file * registered C++ tests for plovasp * corrected imports for py3 tests for plovasp * corrected block order in sigma_from_file and srvo3_Gloc * exchanged ref files for sigma_from_file, srvo3_Gloc, SrVO3.ref.h5 * moved vasp converter bash scripts from dir shells to bin dir
35 lines
815 B
Python
35 lines
815 B
Python
import sys
|
|
from code import InteractiveInterpreter
|
|
|
|
|
|
def main():
|
|
"""
|
|
Print lines of input along with output.
|
|
"""
|
|
source_lines = (line.rstrip() for line in sys.stdin)
|
|
console = InteractiveInterpreter()
|
|
source = ''
|
|
try:
|
|
while True:
|
|
source = next(source_lines)
|
|
print('>>>', source)
|
|
more = console.runsource(source)
|
|
while more:
|
|
next_line = next(source_lines)
|
|
print('...', next_line)
|
|
source += '\n' + next_line
|
|
more = console.runsource(source)
|
|
except StopIteration:
|
|
if more:
|
|
print('... ')
|
|
more = console.runsource(source + '\n')
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|
|
|
|
|
|
# vim: set expandtab shiftwidth=4 softtabstop=4 :
|
|
|