diff --git a/webnotes/utils/__init__.py b/webnotes/utils/__init__.py index f900ba5a00..2de722c338 100644 --- a/webnotes/utils/__init__.py +++ b/webnotes/utils/__init__.py @@ -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 \ No newline at end of file + return some_list + +def get_base_path(): + import conf + import os + return os.path.dirname(os.path.abspath(conf.__file__)) \ No newline at end of file