def get_sympy_dir():
 global sys_case_insensitive
 this_file = os.path.abspath(__file__)
 sympy_dir = os.path.join(os.path.dirname(this_file), '..', '..')
 sympy_dir = os.path.normpath(sympy_dir)
 sys_case_insensitive = (os.path.isdir(sympy_dir) and os.path.isdir(sympy_dir.lower()) and os.path.isdir(sympy_dir.upper()))
 return sys_normcase(sympy_dir)

def get_sympy_dir ( ) : global sys_case_insensitive this_file = os . path . abspath ( __file__ ) sympy_dir = os . path . join ( os . path . dirname ( this_file ) , '..' , '..' ) sympy_dir = os . path . normpath ( sympy_dir ) sys_case_insensitive = ( os . path . isdir ( sympy_dir ) and os . path . isdir ( sympy_dir . lower ( ) ) and os . path . isdir ( sympy_dir . upper ( ) ) ) return sys_normcase ( sympy_dir )
returns the root sympy directory and set the global value indicating whether the system is case sensitive or not .