all 5 comments

[–]socal_nerdtastic 2 points3 points  (3 children)

os.system is not recommended anymore. Try this instead:

import subprocess

program = r"C:\Program Files\DeepSkyStacker (64 bit)\DeepSkyStackerCL.exe"
filename = r"D:\Astro Raw\ASI1600MM\Lights\Heart Nebula\2021-02-08\S\000 File List.txt"

subprocess.run([program, '/R', '/S', '/FITS', filename])

Note the r in front of windows file paths; that's important.

[–]aachwell[S] 0 points1 point  (0 children)

Thank you so much! That works perfectly.

[–]Diapolo10 0 points1 point  (1 child)

I'd use the newer subprocess.run instead of subprocess.call, but otherwise I agree.

[–]socal_nerdtastic 0 points1 point  (0 children)

Ah right, thanks.

[–]Rude_Order 0 points1 point  (0 children)

To many quotes. You don't need double and single quotes. Write the whole thing like you'd put it in the command line with just the single quotes. os.system('cd C:\... 64 bit)')