Browse Source

get base path of the folder where erpnext is installed

version-14
Anand Doshi 12 years ago
parent
commit
a5cd4727c4
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      webnotes/utils/__init__.py

+ 6
- 1
webnotes/utils/__init__.py 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__))

Loading…
Cancel
Save