Mercurial > repos > pjbriggs > amplicon_analysis_pipeline
comparison amplicon_analysis_pipeline.py @ 12:fb2af52d67d1 draft
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit 53544cd620f81c5cfbdcb277e835f1c6da8588b0-dirty
| author | pjbriggs |
|---|---|
| date | Mon, 18 Jun 2018 07:54:54 -0400 |
| parents | 570228bb2fb7 |
| children | c87b166cbfe1 |
comparison
equal
deleted
inserted
replaced
| 11:570228bb2fb7 | 12:fb2af52d67d1 |
|---|---|
| 97 fp.close() | 97 fp.close() |
| 98 | 98 |
| 99 def find_executable(name): | 99 def find_executable(name): |
| 100 # Locate executable on PATH | 100 # Locate executable on PATH |
| 101 for p in os.environ['PATH'].split(os.pathsep): | 101 for p in os.environ['PATH'].split(os.pathsep): |
| 102 exe = os.path.join(name) | 102 exe = os.path.join(p,name) |
| 103 if os.path.isfile(exe) and os.access(exe,os.X_OK): | 103 if os.path.isfile(exe) and os.access(exe,os.X_OK): |
| 104 return exe | 104 return exe |
| 105 return None | 105 return None |
| 106 | 106 |
| 107 if __name__ == "__main__": | 107 if __name__ == "__main__": |
