diff --git a/cgi-bin/webnotes/utils/scheduler.py b/cgi-bin/webnotes/utils/scheduler.py index 7caa1fd6ee..879063a1d2 100644 --- a/cgi-bin/webnotes/utils/scheduler.py +++ b/cgi-bin/webnotes/utils/scheduler.py @@ -162,7 +162,7 @@ def cancel_event(event): if __name__=='__main__': import os,sys - cgi_bin_path = os.path.sep.join(__file__.split(os.path.sep)[:-3]) + cgi_bin_path = os.path.sep.join(os.path.abspath(__file__).split(os.path.sep)[:-3]) sys.path.append(cgi_bin_path)