0

I am running a small Python RevoscalePy script to import a file into an XDF file.

# [RESULTS_LOCATION] = ['C:\\\\Temp\\\\Data\\\\Results']
RxOptions.set_option("OutDataPath", [RESULTS_LOCATION])
...
infile = os.path.join(st.SAMPLE_DATA_DIR,'claims.txt')
rx_import(input_data = infile, output_file = 'claims.xdf',
    overwrite = True)

The file claims.xdf is not saved in C:\Temp\Data\Results, but in the directory of the .py script (the default according to documentation). Why?

Update

With the following, it works:

outfile = os.path.join(st.RESULTS_LOCATION,'claims.xdf')

rx_import(input_data = infile, output_file = outfile,
    overwrite = True)
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453

0 Answers0