diff --git a/pyraf/iraffunctions.py b/pyraf/iraffunctions.py index 228fbcb0..3991e90f 100644 --- a/pyraf/iraffunctions.py +++ b/pyraf/iraffunctions.py @@ -152,7 +152,9 @@ def Init(doprint=1, hush=0, savefile=None): iraf = _os.environ['iraf'] if "IRAFARCH" not in _os.environ: - _os.environ["IRAFARCH"] = _getIrafArch(iraf) + arch = _getIrafArch(iraf) + _os.environ["IRAFARCH"] = arch + arch = _os.environ["IRAFARCH"] # stacksize problem on linux @@ -309,12 +311,12 @@ def _getIrafArch(iraf): return m[1] # Retrieve it from the irafarch script - fname = _os.path.join(iraf, "unix", "hlib", "irafarch") - if _os.path.exists(fname): - import subprocess - exitcode, arch = subprocess.getstatusoutput(f"{fname} -actual") - if exitcode == 0: - return arch + #fname = _os.path.join(iraf, "unix", "hlib", "irafarch.sh") + #if _os.path.exists(fname): + # import subprocess + # exitcode, arch = subprocess.getstatusoutput(f"{fname} -actual") + # if exitcode == 0: + # return arch return ""