@@ -129,8 +129,6 @@ def export_image(self,
129
129
130
130
- datafile -- full path to the data file Jmol can read or
131
131
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.
134
132
135
133
- datafile_cmd -- (default ``'script'``) ``'load'`` or ``'script'``
136
134
should be ``"load"`` for a data file.
@@ -180,10 +178,6 @@ def export_image(self,
180
178
sage: archive = NamedTemporaryFile(suffix=".zip")
181
179
sage: D.export_jmol(archive.name) # needs sage.plot
182
180
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')
187
181
sage: script = f'set defaultdirectory "f{archive_native}"\n'
188
182
sage: script += 'script SCRIPT\n'
189
183
sage: with NamedTemporaryFile(suffix=".png") as testfile: # optional - java, needs sage.plot
@@ -198,12 +192,6 @@ def export_image(self,
198
192
jmolpath = self .jmolpath ()
199
193
target_native = targetfile
200
194
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
-
207
195
launchscript = ""
208
196
if (datafile_cmd != 'script' ):
209
197
launchscript = "load "
0 commit comments