Skip to content

Commit

Permalink
added /bin/env
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasHeger committed Jan 3, 2010
1 parent 592f309 commit c37259b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/radar.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/env python
####
####
##
Expand All @@ -12,7 +13,7 @@
##
####
####
USAGE = """radar.py [OPTIONS] filenames
USAGE="""radar.py [OPTIONS] filenames
run radar on one or more fasta-formatted files.
"""
Expand Down Expand Up @@ -85,8 +86,6 @@ def Print( self ):
map( str, (self.mNRepeats, self.mScore, self.mLength, self.mLevel)) ,
"\t" )
print self.mRepeatUnits



##------------------------------------------------------------------------
def BuildResult( self, file ):
Expand Down Expand Up @@ -195,7 +194,7 @@ def main():
regex_identifier = "^(\S+)" )

(options, args) = parser.parse_args()

if options.stdout != sys.stdout:
options.stdout = open(options.stdout, "w")
if options.stderr != sys.stderr:
Expand Down Expand Up @@ -235,7 +234,7 @@ def main():
shutil.rmtree( tmpdir )

if __name__ == '__main__':
main()
sys.exit(main())



Expand Down

0 comments on commit c37259b

Please sign in to comment.