We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c608065 commit 5ecb5cfCopy full SHA for 5ecb5cf
tests/test_scripting.py
@@ -7,14 +7,18 @@
7
import numpy.testing as npt
8
home = os.path.dirname(__file__)
9
work = tempfile.gettempdir()
10
-work='/tmp/'
11
12
-import importlib # fixup path if GSASII not installed into Python
+import importlib.util # fixup path if GSASII not installed into Python
13
if importlib.util.find_spec('GSASII') is None:
14
print('GSAS-II not installed in Python: Hacking sys.path')
15
os.environ["GSASII_YOLO_PATH"] = "True"
16
sys.path.append(os.path.dirname(home))
17
-
+else:
+ # this seems to be needed to run scriptable inside the testing framework
18
+ # TODO: figure out why this is
19
+ os.environ["GSASII_YOLO_PATH"] = "True"
20
+
21
22
import GSASII.GSASIIscriptable as G2sc
23
24
def test_refine():
0 commit comments