Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, r_home, ver):
RadianApplication.instance = self
self.r_home = r_home
self.ver = ver
super(RadianApplication, self).__init__()
def __init__(self, r_home, ver):
RadianApplication.instance = self
self.r_home = r_home
self.ver = ver
super(RadianApplication, self).__init__()
R_LD_LIBRARY_PATH = "{}:{}".format(libPath, R_LD_LIBRARY_PATH)
os.environ['R_LD_LIBRARY_PATH'] = R_LD_LIBRARY_PATH
if "LD_LIBRARY_PATH" in os.environ:
LD_LIBRARY_PATH = "{}:{}".format(R_LD_LIBRARY_PATH, os.environ["LD_LIBRARY_PATH"])
else:
LD_LIBRARY_PATH = R_LD_LIBRARY_PATH
os.environ['LD_LIBRARY_PATH'] = LD_LIBRARY_PATH
if sys.argv[0].endswith("radian"):
os.execv(sys.argv[0], sys.argv)
else:
os.execv(sys.executable, [sys.executable, "-m", "radian"] + sys.argv[1:])
from .radianapp import RadianApplication
RadianApplication(r_home, ver=__version__).run(options)
def get_app():
from .radianapp import RadianApplication
return RadianApplication.instance