X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rest%2Fmonitor.py;h=d9a49391c35ca8c669b168598be56a677601808a;hb=deee82377a1f72626cede01fdfec5e9d7cc274ce;hp=772954954a1639aca44a63c44f03cdb045e7653d;hpb=52a0b9984635eab3576e652a3a55c7bb15f564d6;p=myslice.git diff --git a/rest/monitor.py b/rest/monitor.py index 77295495..d9a49391 100644 --- a/rest/monitor.py +++ b/rest/monitor.py @@ -7,7 +7,8 @@ import ConfigParser def servicesStatus(request): Config = ConfigParser.ConfigParser() - Config.read(os.getcwd() + "/myslice/myslice/monitor.ini") + monitor_file = os.path.abspath(os.path.dirname(__file__) + '/../myslice/monitor.ini') + Config.read(monitor_file) result = {}