Products | Versions |
---|---|
Spotfire Analyst | 7.0,7.5,7.6,7.7,7.8,7.9 |
The OS module is not seem a part of the Spotfire Python module so it fails to load and cannot be used in the Spotfire Python scripts.
The .NET module System.IO can be used for any file related operations. For example, to check if a file exists in a directory, use the following snippet:
from System.IO import File
path = r'c:\temp\myfile.txt'
print 'File Exists: %s' % File.Exists(path)