|
11 | 11 |
|
12 | 12 | """
|
13 | 13 | c = Connection("kohn", quiet=True, local=False)
|
14 |
| -print(c.os.isfile("/home/rynik/hw_config_Kohn.log")) |
| 14 | +print(c.os.path.isfile("/home/rynik/hw_config_Kohn.log")) |
15 | 15 |
|
16 | 16 | c1 = deepcopy(c)
|
17 | 17 | c2 = pickle.loads(pickle.dumps(c))
|
18 |
| -print(c1.os.isfile("/home/rynik/hw_config_Kohn.log")) |
19 |
| -print(c2.os.isfile("/home/rynik/hw_config_Kohn.log")) |
| 18 | +print(c1.os.path.isfile("/home/rynik/hw_config_Kohn.log")) |
| 19 | +print(c2.os.path.isfile("/home/rynik/hw_config_Kohn.log")) |
20 | 20 |
|
21 | 21 | print(id(c), id(c1), id(c2))
|
22 | 22 |
|
23 | 23 | mc = MultiConnection(["kohn"], quiet=True)
|
24 |
| -for out in mc.os.isfile("/home/rynik/hw_config_Kohn.log"): |
| 24 | +for out in mc.os.path.isfile("/home/rynik/hw_config_Kohn.log"): |
25 | 25 | print(out)
|
26 | 26 | mc.keys()
|
27 | 27 | mc.values()
|
|
40 | 40 |
|
41 | 41 |
|
42 | 42 | with MultiConnection(["kohn"], quiet=True) as mc:
|
43 |
| - for out in mc.os.isfile("/home/rynik/hw_config_Kohn.log"): |
| 43 | + for out in mc.os.path.isfile("/home/rynik/hw_config_Kohn.log"): |
44 | 44 | print(out)
|
45 | 45 |
|
46 | 46 | mcl = MultiConnection.from_dict(a, quiet=True)
|
47 | 47 | k = mcl["kohn"]
|
48 | 48 | print("id", id(MultiConnection))
|
49 |
| -print(k.os.isfile) |
50 |
| -print(k.os.isfile("/home/rynik/hw_config_Kohn.log")) |
51 |
| -#print(mcl["fock"].os.isfile("/home/rynik/hw_config_Kohn.log")) |
| 49 | +print(k.os.path.isfile) |
| 50 | +print(k.os.path.isfile("/home/rynik/hw_config_Kohn.log")) |
| 51 | +#print(mcl["fock"].os.path.isfile("/home/rynik/hw_config_Kohn.log")) |
52 | 52 | print("---------------")
|
53 |
| -for o in mcl.os.isfile("/home/rynik/hw_config_Kohn.log"): |
| 53 | +for o in mcl.os.path.isfile("/home/rynik/hw_config_Kohn.log"): |
54 | 54 | print(o)
|
55 | 55 |
|
56 | 56 |
|
57 | 57 | print("..............................................................")
|
58 | 58 | with Connection("kohn", quiet=True, local=False) as c:
|
59 |
| - print(c.os.isfile("/home/rynik/hw_config_Kohn.log")) |
| 59 | + print(c.os.path.isfile("/home/rynik/hw_config_Kohn.log")) |
60 | 60 |
|
61 | 61 | con = str(c)
|
62 | 62 |
|
63 | 63 | c = Connection.from_str(con, quiet=True)
|
64 |
| -print(c.os.isfile("/home/rynik/hw_config_Kohn.log")) |
| 64 | +print(c.os.path.isfile("/home/rynik/hw_config_Kohn.log")) |
65 | 65 |
|
66 | 66 | A = TypeVar("A")
|
67 | 67 | B = TypeVar("B")
|
|
0 commit comments