csv - Python Script not creating file when run through Task Scheduler -


link python code running through task scheduler

image link job detail on scheduler

when running through job scheduler, python script not creating file in script directory (scraped data in csv files). tf-idf working perfect can't find files.

it related environment. user running as? may try putting in few lines see thinks running.

import os  # print current working directory  print "current working dir : %s" % os.getcwd() 

or go 1 step further , change dir want before processing begins.

# first go "/var/www/html" directory os.chdir("/var/www/html" ) 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -