get base path of the folder where erpnext is installed

This commit is contained in:
Anand Doshi 2013-01-14 11:17:19 +05:30
parent 1f2b10a3a9
commit a5cd4727c4

View file

@ -759,4 +759,9 @@ def comma_sep(some_list, sep):
some_list = ["'%s'" % s for s in some_list]
return ", ".join(some_list[:-1]) + sep + some_list[-1]
else:
return some_list
return some_list
def get_base_path():
import conf
import os
return os.path.dirname(os.path.abspath(conf.__file__))