Mercurial > repos > fubar > tool_factory_2
comparison getlocalrpackages.py @ 18:a11e053d4976 draft
Uploaded
author | fubar |
---|---|
date | Sun, 01 Feb 2015 19:57:14 -0500 |
parents | a584ff2f7554 |
children |
comparison
equal
deleted
inserted
replaced
17:a584ff2f7554 | 18:a11e053d4976 |
---|---|
1 import os | 1 import os |
2 import subprocess | 2 import subprocess |
3 import sys | 3 import sys |
4 | |
5 new_path = [ os.path.join( os.getcwd(), "lib" ) ] | |
6 #new_path.extend( sys.path[1:] ) # remove scripts/ from the path | |
7 sys.path = new_path | |
8 from galaxy import config | |
9 | |
10 aconfig = config.Configuration( ) | |
11 M_A_K = aconfig.master_api_key | |
12 print M_A_K | |
13 | 4 |
14 | 5 |
15 def find_packages(prefix="package_r_"): | 6 def find_packages(prefix="package_r_"): |
16 """ | 7 """ |
17 """ | 8 """ |
45 # return a triplet - user_sees,value,selected - all unselected if False | 36 # return a triplet - user_sees,value,selected - all unselected if False |
46 return res | 37 return res |
47 | 38 |
48 if __name__ == "__main__": | 39 if __name__ == "__main__": |
49 print find_packages() | 40 print find_packages() |
41 | |
42 new_path = [ os.path.join( os.getcwd(), "lib" ) ] | |
43 #new_path.extend( sys.path[1:] ) # remove scripts/ from the path | |
44 sys.path = new_path | |
45 from galaxy import config | |
46 | |
47 aconfig = config.Configuration( ) | |
48 M_A_K = aconfig.master_api_key | |
49 |