Changeset 4129

Show
Ignore:
Timestamp:
02/19/09 19:28:43 (4 years ago)
Author:
gpolo
Message:

Use the same directory used by orig_output when creating a new file so we don't have permission issues.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/umitCore/Scheduler.py

    r4109 r4129  
    3030from ConfigParser import ConfigParser 
    3131 
    32 from umitCore.BGProcess import BGRunner#, WindowsService 
     32from umitCore.BGProcess import BGRunner 
    3333from umitCore.Paths import Path 
    3434from umitCore.UmitLogging import file_log 
     
    686686                    curr_time = time.ctime() 
    687687                    orig_output = scan.get_xml_output_file() 
    688                     new_file_output = curr_time + "-" + opts[3] 
     688                    new_file_output = os.path.join( 
     689                            os.path.dirname(orig_output), 
     690                            curr_time + "-" + opts[3]) 
    689691 
    690692                    fd_wcont = open(new_file_output, 'w')