Details |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 4954 |
rajveer |
1 |
#!/usr/bin/python
|
|
|
2 |
|
|
|
3 |
import sys
|
|
|
4 |
|
|
|
5 |
if __name__ == '__main__' and __package__ is None:
|
|
|
6 |
import os
|
|
|
7 |
sys.path.insert(0, os.getcwd())
|
|
|
8 |
|
|
|
9 |
from shop2020.config.client.ConfigClient import ConfigClient
|
|
|
10 |
|
|
|
11 |
def reload():
|
|
|
12 |
config_client = ConfigClient()
|
|
|
13 |
print config_client.get_property("user_service_server_port")
|
|
|
14 |
config_client.reloadProperties()
|
|
|
15 |
print config_client.get_property("user_service_server_port")
|
|
|
16 |
|
|
|
17 |
def main():
|
|
|
18 |
reload()
|
|
|
19 |
|
|
|
20 |
if __name__ == '__main__':
|
|
|
21 |
main()
|