User Profile

Collapse

Profile Sidebar

Collapse
flawrence
flawrence
Last Activity: Sep 16 '14, 10:55 PM
Joined: Sep 8 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • flawrence
    replied to Output strings to directory locally
    So I tried the sysstd output with this code
    Code:
    import os
    
    path = '/Users/felishalawrence/testswps/vol1'  
    for file in os.listdir(path):
            newFile = file[:file.rindex("v")]+"v20"
    sys.stdout =  '/Users/felishalawrence/testswps/vol1'
    print newFile
    and got nothing. No errors and it did not print out my results in ipython notebook when I removed line 5 and...
    See more | Go to post
    Last edited by bvdet; Sep 15 '14, 09:42 AM. Reason: Add code tags. Please use code tags when posting code. [code].....[/code]

    Leave a comment:


  • flawrence
    replied to Output strings to directory locally
    Thank you! However, my files do not have a .etc extension. They are unique and I need them to actually be propagated straight into a directory. Is this possible?
    See more | Go to post

    Leave a comment:


  • flawrence
    started a topic Output strings to directory locally

    Output strings to directory locally

    Is it possible to output strings created from a print statement into a directory locally?
    If so, would you use sysstdout module?
    See more | Go to post
No activity results to display
Show More
Working...