-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
22 lines (18 loc) · 959 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python
from functions_module import *
env_file = 'env.txt'
env_example_file = 'env_example.txt'
if __name__ == '__main__':
print('----')
print('Number of non-blank and non-comment lines in \'' + env_file + '\' is: ' + str(
count_of_keys_available(env_file)))
print('Number of non-blank and non-comment lines in \'' + env_example_file + '\' is: ' + str(
count_of_keys_available(env_example_file)))
print('----')
if len(make_a_list_from_uncommon_items(make_a_list_from_the_file_keys(env_file),
make_a_list_from_the_file_keys(env_example_file))) == 0:
print('The files have the same keys, no need to double check.')
for item in make_a_list_from_uncommon_items(make_a_list_from_the_file_keys(env_file),
make_a_list_from_the_file_keys(env_example_file)):
if item[0] != '#':
print(item)