Форум сайта python.su
0
Есть 2 файла:
1. test.py:
import os, os.path def test_func(): os.path.exists('s') test_func()
def read_file(path): with (open(path)) as f: return ''.join(f.readlines()) exec(read_file('test.py')) def test(): exec(read_file('test.py')) test()
Офлайн
0
Проблема в том, что в файле test_main.py нет строчки import os, os.path.
Офлайн