Skip to content

Commit

Permalink
SetApplicationName py.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Aug 10, 2023
1 parent 706edc5 commit abe8e15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions com/win32comext/taskscheduler/test/test_addtask_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@

t = ts.NewWorkItem(task_name)
t.SetComment("Test a task running as local system acct")
t.SetApplicationName("c:\\Python37\\python.exe")
t.SetApplicationName("py.exe")
t.SetPriority(taskscheduler.REALTIME_PRIORITY_CLASS)
t.SetParameters("test_localsystem.py")
t.SetWorkingDirectory("c:\\Python37")
t.SetCreator("test_addtask_2.py")
t.SetMaxRunTime(20000) # milliseconds
t.SetFlags(taskscheduler.TASK_FLAG_DELETE_WHEN_DONE)
Expand Down

0 comments on commit abe8e15

Please sign in to comment.