Mercurial > repos > pjbriggs > amplicon_analysis_pipeline
comparison amplicon_analysis_pipeline.py @ 30:18e6427c5e4a draft
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit 283f59740e90fa714c305007af40041ce39a74aa
| author | pjbriggs |
|---|---|
| date | Tue, 02 Oct 2018 08:58:13 -0400 |
| parents | 31b7950136ed |
| children | e832be1635b4 |
comparison
equal
deleted
inserted
replaced
| 29:31b7950136ed | 30:18e6427c5e4a |
|---|---|
| 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.normpath( | 102 exe = os.path.normpath( |
| 103 os.path.abspath(os.path.join(p,name))) | 103 os.path.abspath(os.path.join(p,name))) |
| 104 print "Checking %s" % exe | |
| 105 if os.path.isfile(exe) and os.access(exe,os.X_OK): | 104 if os.path.isfile(exe) and os.access(exe,os.X_OK): |
| 106 return exe | 105 return exe |
| 107 return None | 106 return None |
| 108 | 107 |
| 109 if __name__ == "__main__": | 108 if __name__ == "__main__": |
