Try this:
import os
def root_path():
return os.path.abspath(os.sep)
On Linux this returns /
On Windows this returns C:\\ or whatever the current drive is
Try this:
import os
def root_path():
return os.path.abspath(os.sep)
On Linux this returns /
On Windows this returns C:\\ or whatever the current drive is