get base path of the folder where erpnext is installed
This commit is contained in:
parent
1f2b10a3a9
commit
a5cd4727c4
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue