Skip to content

Commit 3dbca81

Browse files
orlitzkydimpase
authored andcommitted
src/sage/interfaces/jmoldata.py: no native Windows paths
We're dropping Cygwin support, and in particular, the pycygwin library that handles these paths.
1 parent ff0d06e commit 3dbca81

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/sage/interfaces/jmoldata.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ def export_image(self,
129129
130130
- datafile -- full path to the data file Jmol can read or
131131
text of a script telling Jmol what to read or load.
132-
If it is a script and the platform is cygwin, the filenames in
133-
the script should be in native windows format.
134132
135133
- datafile_cmd -- (default ``'script'``) ``'load'`` or ``'script'``
136134
should be ``"load"`` for a data file.
@@ -180,10 +178,6 @@ def export_image(self,
180178
sage: archive = NamedTemporaryFile(suffix=".zip")
181179
sage: D.export_jmol(archive.name) # needs sage.plot
182180
sage: archive_native = archive.name
183-
sage: import sys
184-
sage: if sys.platform == 'cygwin':
185-
....: import cygwin
186-
....: archive_native = cygwin.cygpath(archive_native, 'w')
187181
sage: script = f'set defaultdirectory "f{archive_native}"\n'
188182
sage: script += 'script SCRIPT\n'
189183
sage: with NamedTemporaryFile(suffix=".png") as testfile: # optional - java, needs sage.plot
@@ -198,12 +192,6 @@ def export_image(self,
198192
jmolpath = self.jmolpath()
199193
target_native = targetfile
200194

201-
if sys.platform == 'cygwin':
202-
import cygwin
203-
target_native = cygwin.cygpath(target_native, 'w')
204-
if datafile_cmd != 'script':
205-
datafile = cygwin.cygpath(datafile, 'w')
206-
207195
launchscript = ""
208196
if (datafile_cmd != 'script'):
209197
launchscript = "load "

0 commit comments

Comments
 (0)