diff --git a/GSASII/GSASIIscriptable.py b/GSASII/GSASIIscriptable.py index 1732da93..db4e8e54 100644 --- a/GSASII/GSASIIscriptable.py +++ b/GSASII/GSASIIscriptable.py @@ -1391,7 +1391,7 @@ def add_phase(self, phasefile=None, phasename=None, histograms=[], # process constraints, currently generated only from ISODISTORT CIFs if phasereader.Constraints: - Constraints = self.data['Constraints'] + Constraints = self.data['Constraints']['data'] for i in phasereader.Constraints: if isinstance(i, dict): if '_Explain' not in Constraints: diff --git a/GSASII/install/makeLinux.py b/GSASII/install/makeLinux.py index 5584d2f9..32ebfe4f 100644 --- a/GSASII/install/makeLinux.py +++ b/GSASII/install/makeLinux.py @@ -45,7 +45,7 @@ def Usage(): # find the main GSAS-II script if not on command line path2GSAS2 = os.path.dirname(os.path.dirname(__file__)) path2repo = os.path.dirname(path2GSAS2) - G2script = os.path.abspath(path2GSAS2,"G2.py") + G2script = os.path.abspath(os.path.join(path2GSAS2,"G2.py")) elif __file__.endswith("makeLinux.py") and len(sys.argv) == 2: G2script = os.path.abspath(sys.argv[1]) path2GSAS2 = os.path.dirname(G2script)