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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -