By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,603 Members | 1,093 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,603 IT Pros & Developers. It's quick & easy.

Re: Print statement isn't showing up?

P: n/a

Robert Dailey wrote:
I have the following code:
Python version? Plafform?
def ReplaceExternalWithCopy( localDir, remoteDir ):
print "Removing external local directory:", localDir
rmdirs( localDir )
vfxrepo.copy( remoteDir, localDir )

I noticed that the print statement above does not show up before
vfxrepo.copy() is called. the copy() function (as well as the rmdirs()
function) are very long file-system calls that take up to 5 minutes. I
should see a print statement before these are executed, but I do not.
Instead it shows up *after* the last 2 lines of code have completed. Is
there something broken about this?
There may be a buffering issue. After the print, try
import sys

Aug 5 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.