mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-18 10:19:03 -04:00
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
diff -up src/sage/interfaces/jmoldata.py.orig src/sage/interfaces/jmoldata.py
|
|
--- src/sage/interfaces/jmoldata.py.orig 2021-05-09 16:00:11.000000000 -0600
|
|
+++ src/sage/interfaces/jmoldata.py 2021-05-28 11:36:18.844565672 -0600
|
|
@@ -148,8 +148,6 @@ class JmolData(SageObject):
|
|
sage: print(os.path.exists(testfile)) # optional -- java
|
|
True
|
|
"""
|
|
- # Set up paths, file names and scripts
|
|
- jmolpath = os.path.join(JMOL_DIR, "JmolData.jar")
|
|
target_native = targetfile
|
|
|
|
if sys.platform == 'cygwin':
|
|
@@ -173,10 +171,8 @@ class JmolData(SageObject):
|
|
env = dict(os.environ)
|
|
env['LC_ALL'] = 'C'
|
|
env['LANG'] = 'C'
|
|
- subprocess.call(["java", "-Xmx512m", "-Djava.awt.headless=true",
|
|
- "-jar", jmolpath, "-iox", "-g", size_arg,
|
|
- "-J", launchscript, "-j", imagescript],
|
|
- stdout=jout, stderr=jout, env=env)
|
|
+ subprocess.call(["jmol", "-n", "-g", size_arg,
|
|
+ "-J", launchscript, "-j", imagescript], stdout=jout)
|
|
if not os.path.isfile(targetfile):
|
|
raise RuntimeError(f"Jmol failed to create file {targetfile}: {Path(scratchout).read_text()}")
|
|
os.unlink(scratchout)
|