How to use python2 method in Pytest

Best Python code snippet using pytest

fly_launcher.py

Source:fly_launcher.py Github

copy

Full Screen

1import os, stat2##########################################################################3# Settings4number_runs = 1005title_string = "Data collection of function frequencies in programs throughout a GP run"6description = """A collection of compact csv data files representing program7counts of all individuals in evolutionary runs """8##########################################################################9# Uncomment the following if you want to print timings in the logs10#example_file += " :print-timings true"11##########################################################################12# Probably don't change these13#output_prefix = "log"14#output_postfix = ".txt"15output_prefix = "run"16output_postfix = ".csv"17zip_start1 = "tar -xvzf /home/thelmuth/Results/clustering-bench/even-squares/baseline-uniform/csv/data"18zip_start2 = "tar -xvzf /home/thelmuth/Results/clustering-bench/for-loop-index/baseline-uniform/csv/data"19zip_start3 = "tar -xvzf /home/thelmuth/Results/clustering-bench/grade/baseline-uniform/csv/data"20zip_start4 = "tar -xvzf /home/thelmuth/Results/clustering-bench/last-index-of-zero/baseline-uniform/csv/data"21zip_start5 = "tar -xvzf /home/thelmuth/Results/clustering-bench/median/baseline-uniform/csv/data"22zip_start6 = "tar -xvzf /home/thelmuth/Results/clustering-bench/mirror-image/baseline-uniform/csv/data"23zip_start7 = "tar -xvzf /home/thelmuth/Results/clustering-bench/negative-to-zero/lexicase/csv/data"24zip_start8 = "tar -xvzf /home/thelmuth/Results/clustering-bench/number-io/baseline-uniform/csv/data"25zip_start9 = "tar -xvzf /home/thelmuth/Results/clustering-bench/pig-latin/baseline-uniform/csv/data"26zip_start10 = "tar -xvzf /home/thelmuth/Results/clustering-bench/replace-space-with-newline/lexicase/csv/data"27zip_start11 = "tar -xvzf /home/thelmuth/Results/clustering-bench/scrabble-score/lexicase/csv/data"28zip_start12 = "tar -xvzf /home/thelmuth/Results/clustering-bench/smallest/baseline-uniform/csv/data"29zip_start13 = "tar -xvzf /home/thelmuth/Results/clustering-bench/small-or-large/baseline-uniform/csv/data"30zip_start14 = "tar -xvzf /home/thelmuth/Results/clustering-bench/string-differences/baseline-uniform/csv/data"31zip_start15 = "tar -xvzf /home/thelmuth/Results/clustering-bench/string-lengths-backwards/lexicase/csv/data"32zip_start16 = "tar -xvzf /home/thelmuth/Results/clustering-bench/sum-of-squares/baseline-uniform/csv/data"33zip_start17 = "tar -xvzf /home/thelmuth/Results/clustering-bench/super-anagrams/baseline-uniform/csv/data"34zip_start18 = "tar -xvzf /home/thelmuth/Results/clustering-bench/syllables/lexicase/csv/data"35zip_start19 = "tar -xvzf /home/thelmuth/Results/clustering-bench/vector-average/lexicase/csv/data"36zip_start20 = "tar -xvzf /home/thelmuth/Results/clustering-bench/vectors-summed/baseline-uniform/csv/data"37zip_start21 = "tar -xvzf /home/thelmuth/Results/clustering-bench/wallis-pi/baseline-uniform/csv/data"38zip_start22 = "tar -xvzf /home/thelmuth/Results/clustering-bench/word-stats/baseline-uniform/csv/data"39zip_start23 = "tar -xvzf /home/thelmuth/Results/clustering-bench/x-word-lines/baseline-uniform/csv/data"40zip_start24 = "tar -xvzf /home/thelmuth/Results/clustering-bench/checksum/lexicase/csv/data"41zip_start25 = "tar -xvzf /home/thelmuth/Results/clustering-bench/collatz-numbers/baseline-uniform/csv/data"42zip_start26 = "tar -xvzf /home/thelmuth/Results/clustering-bench/compare-string-lengths/baseline-uniform/csv/data"43zip_start27 = "tar -xvzf /home/thelmuth/Results/clustering-bench/count-odds/lexicase/csv/data"44zip_start28 = "tar -xvzf /home/thelmuth/Results/clustering-bench/digits/baseline-uniform/csv/data"45zip_start29 = "tar -xvzf /home/thelmuth/Results/clustering-bench/double-letters/lexicase/csv/data"46zip_end1 = ".csv.tar.gz"47service_tag = "tom"48##########################################################################49output_directory = "/home/gwoolson/csvdata"50runfile = "/home/gwoolson/Grace_Research/fly_failedall.py"51# Check to make sure directory doesn't exist; if not, create it52if output_directory[-1] != "/":53 output_directory += "/"54if os.path.isdir(output_directory):55 raise RuntimeError("Output directory already exists")56"""os.mkdir(output_directory)57os.mkdir(output_directory + "checksum/")58os.mkdir(output_directory + "checksum/donetest")59copyfile(runfile, output_directory + "checksum/map.py")60os.mkdir(output_directory + "collatz-numbers/")61os.mkdir(output_directory + "collatz-numbers/donetest")62copyfile(runfile, output_directory + "collatz-numbers/map.py")63os.mkdir(output_directory + "compare-string-lengths")64os.mkdir(output_directory + "compare-string-lengths/donetest")65copyfile(runfile, output_directory + "compare-string-lengths/map.py")66os.mkdir(output_directory + "count-odds")67os.mkdir(output_directory + "count-odds/donetest")68copyfile(runfile, output_directory + "count-odds/map.py")69os.mkdir(output_directory + "digits/")70os.mkdir(output_directory + "digits/donetest")71copyfile(runfile, output_directory + "digits/map.py")72os.mkdir(output_directory + "double-letters/")73os.mkdir(output_directory + "double-letters/donetest")74copyfile(runfile, output_directory + "double-letters/map.py")75os.mkdir(output_directory + "even-squares/")76os.mkdir(output_directory + "even-squares/donetest")77copyfile(runfile, output_directory + "even-squares/map.py")78os.mkdir(output_directory + "for-loop-index/")79os.mkdir(output_directory + "for-loop-index/donetest")80copyfile(runfile, output_directory + "for-loop-index/map.py")81os.mkdir(output_directory + "grade/")82os.mkdir(output_directory + "grade/donetest")83copyfile(runfile, output_directory + "grade/map.py")84os.mkdir(output_directory + "last-index-of-zero/")85os.mkdir(output_directory + "last-index-of-zero/donetest")86copyfile(runfile, output_directory + "last-index-of-zero/map.py")87os.mkdir(output_directory + "median/")88os.mkdir(output_directory + "median/donetest")89copyfile(runfile, output_directory + "median/map.py")90os.mkdir(output_directory + "mirror-image/")91os.mkdir(output_directory + "mirror-image/donetest")92copyfile(runfile, output_directory + "mirror-image/map.py")93os.mkdir(output_directory + "negative-to-zero/")94os.mkdir(output_directory + "negative-to-zero/donetest")95copyfile(runfile, output_directory + "negative-to-zero/map.py")96os.mkdir(output_directory + "number-io/")97os.mkdir(output_directory + "number-io/donetest")98copyfile(runfile, output_directory + "number-io/map.py")99os.mkdir(output_directory + "pig-latin/")100os.mkdir(output_directory + "pig-latin/donetest")101copyfile(runfile, output_directory + "pig-latin/map.py")102os.mkdir(output_directory + "replace-space-with-newline/")103os.mkdir(output_directory + "replace-space-with-newline/donetest")104copyfile(runfile, output_directory + "replace-space-with-newline/map.py")105os.mkdir(output_directory + "scrabble-score/")106os.mkdir(output_directory + "scrabble-score/donetest")107copyfile(runfile, output_directory + "scrabble-score/map.py")108os.mkdir(output_directory + "smallest/")109os.mkdir(output_directory + "smallest/donetest")110copyfile(runfile, output_directory + "smallest/map.py")111os.mkdir(output_directory + "small-or-large/")112os.mkdir(output_directory + "small-or-large/donetest")113copyfile(runfile, output_directory + "small-or-large/map.py")114os.mkdir(output_directory + "string-differences/")115os.mkdir(output_directory + "string-differences/donetest")116copyfile(runfile, output_directory + "string-differences/map.py")117os.mkdir(output_directory + "string-lengths-backwards/")118os.mkdir(output_directory + "string-lengths-backwards/donetest")119copyfile(runfile, output_directory + "string-lengths-backwards/map.py")120os.mkdir(output_directory + "sum-of-squares/")121os.mkdir(output_directory + "sum-of-squares/donetest")122copyfile(runfile, output_directory + "sum-of-squares/map.py")123os.mkdir(output_directory + "super-anagrams/")124os.mkdir(output_directory + "super-anagrams/donetest")125copyfile(runfile, output_directory + "super-anagrams/map.py")126os.mkdir(output_directory + "syllables/")127os.mkdir(output_directory + "syllables/donetest")128copyfile(runfile, output_directory + "syllables/map.py")129os.mkdir(output_directory + "vector-average/")130os.mkdir(output_directory + "vector-average/donetest")131copyfile(runfile, output_directory + "vector-average/map.py")132os.mkdir(output_directory + "vectors-summed/")133os.mkdir(output_directory + "vectors-summed/donetest")134copyfile(runfile, output_directory + "vectors-summed/map.py")135os.mkdir(output_directory + "wallis-pi/")136os.mkdir(output_directory + "wallis-pi/donetest")137copyfile(runfile, output_directory + "wallis-pi/map.py")138os.mkdir(output_directory + "word-stats/")139os.mkdir(output_directory + "word-stats/donetest")140copyfile(runfile, output_directory + "word-stats/map.py")141os.mkdir(output_directory + "x-word-lines/")142os.mkdir(output_directory + "x-word-lines/donetest")143copyfile(runfile, output_directory + "x-word-lines/map.py")"""144os.mkdir(output_directory)145# Make alf file146#alf_file_string = output_directory + "clojush_runs.alf"147alf_file_string = output_directory + "clojush_scraping.alf"148alf_f = open(alf_file_string, "w")149alfcode = """##AlfredToDo 3.0150Job -title {%s} -subtasks {151""" % (title_string)152#change this! Enter bash commands on the command line to do whatever you want, then enter those commands here, separated by ;153for run in range(0, number_runs):154 intro_command = "echo Starting run; cd %seven-squares/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start1, run, zip_end)155 command = "python map.py %seven-squares/data%i.csv mapdata%i.csv;" % (output_directory, run, run)156 outro_command = "rm data%i.csv; echo Finished Run" % (run)157 full_command = intro_command + command + outro_command158 alfcode += """ Task -title {%s - run %i} -cmds {159 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}160 }161""" % (title_string, run, full_command, service_tag)162for run in range(0, number_runs):163 intro_command = "echo Starting run; cd %sfor-loop-index/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start2, run, zip_end)164 command = "python map.py %sfor-loop-index/data%i.csv mapdata%i.csv;" % (output_directory, run, run)165 outro_command = "rm data%i.csv; echo Finished Run" % (run)166 full_command = intro_command + command + outro_command167 alfcode += """ Task -title {%s - run %i} -cmds {168 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}169 }170""" % (title_string, run, full_command, service_tag)171for run in range(0, number_runs):172 intro_command = "echo Starting run; cd %sgrade/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start3, run, zip_end)173 command = "python map.py %sgrade/data%i.csv mapdata%i.csv;" % (output_directory, run, run)174 outro_command = "rm data%i.csv; echo Finished Run" % (run)175 full_command = intro_command + command + outro_command176 alfcode += """ Task -title {%s - run %i} -cmds {177 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}178 }179""" % (title_string, run, full_command, service_tag)180for run in range(0, number_runs):181 intro_command = "echo Starting run; cd %slast-index-of-zero/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start4, run, zip_end)182 command = "python map.py %slast-index-of-zero/data%i.csv mapdata%i.csv;" % (output_directory, run, run)183 outro_command = "rm data%i.csv; echo Finished Run" % (run)184 full_command = intro_command + command + outro_command185 alfcode += """ Task -title {%s - run %i} -cmds {186 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}187 }188""" % (title_string, run, full_command, service_tag)189for run in range(0, number_runs):190 intro_command = "echo Starting run; cd %smedian/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start5, run, zip_end)191 command = "python map.py %smedian/data%i.csv mapdata%i.csv;" % (output_directory, run, run)192 outro_command = "rm data%i.csv; echo Finished Run" % (run)193 full_command = intro_command + command + outro_command194 alfcode += """ Task -title {%s - run %i} -cmds {195 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}196 }197""" % (title_string, run, full_command, service_tag)198for run in range(0, number_runs):199 intro_command = "echo Starting run; cd %smirror-image/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start6, run, zip_end)200 command = "python map.py %smirror-image/data%i.csv mapdata%i.csv;" % (output_directory, run, run)201 outro_command = "rm data%i.csv; echo Finished Run" % (run)202 full_command = intro_command + command + outro_command203 alfcode += """ Task -title {%s - run %i} -cmds {204 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}205 }206""" % (title_string, run, full_command, service_tag)207for run in range(0, number_runs):208 intro_command = "echo Starting run; cd %snegative-to-zero/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start7, run, zip_end)209 command = "python map.py %snegative-to-zero/data%i.csv mapdata%i.csv;" % (output_directory, run, run)210 outro_command = "rm data%i.csv; echo Finished Run" % (run)211 full_command = intro_command + command + outro_command212 alfcode += """ Task -title {%s - run %i} -cmds {213 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}214 }215""" % (title_string, run, full_command, service_tag)216for run in range(0, number_runs):217 intro_command = "echo Starting run; cd %snumber-io/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start8, run, zip_end)218 command = "python map.py %snumber-io/data%i.csv mapdata%i.csv;" % (output_directory, run, run)219 outro_command = "rm data%i.csv; echo Finished Run" % (run)220 full_command = intro_command + command + outro_command221 alfcode += """ Task -title {%s - run %i} -cmds {222 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}223 }224""" % (title_string, run, full_command, service_tag)225for run in range(0, number_runs):226 intro_command = "echo Starting run; cd %spig-latin/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start9, run, zip_end)227 command = "python map.py %spig-latin/data%i.csv mapdata%i.csv;" % (output_directory, run, run)228 outro_command = "rm data%i.csv; echo Finished Run" % (run)229 full_command = intro_command + command + outro_command230 alfcode += """ Task -title {%s - run %i} -cmds {231 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}232 }233""" % (title_string, run, full_command, service_tag)234for run in range(0, number_runs):235 intro_command = "echo Starting run; cd %sreplace-space-with-newline/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start10, run, zip_end)236 command = "python map.py %sreplace-space-with-newline/data%i.csv mapdata%i.csv;" % (output_directory, run, run)237 outro_command = "rm data%i.csv; echo Finished Run" % (run)238 full_command = intro_command + command + outro_command239 alfcode += """ Task -title {%s - run %i} -cmds {240 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}241 }242""" % (title_string, run, full_command, service_tag)243for run in range(0, number_runs):244 intro_command = "echo Starting run; cd %sscrabble-score/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start11, run, zip_end)245 command = "python map.py %sscrabble-score/data%i.csv mapdata%i.csv;" % (output_directory, run, run)246 outro_command = "rm data%i.csv; echo Finished Run" % (run)247 full_command = intro_command + command + outro_command248 alfcode += """ Task -title {%s - run %i} -cmds {249 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}250 }251""" % (title_string, run, full_command, service_tag)252for run in range(0, number_runs):253 intro_command = "echo Starting run; cd %ssmallest/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start12, run, zip_end)254 command = "python map.py %ssmallest/data%i.csv mapdata%i.csv;" % (output_directory, run, run)255 outro_command = "rm data%i.csv; echo Finished Run" % (run)256 full_command = intro_command + command + outro_command257 alfcode += """ Task -title {%s - run %i} -cmds {258 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}259 }260""" % (title_string, run, full_command, service_tag)261for run in range(0, number_runs):262 intro_command = "echo Starting run; cd %ssmall-or-large/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start13, run, zip_end)263 command = "python map.py %ssmall-or-large/data%i.csv mapdata%i.csv;" % (output_directory, run, run)264 outro_command = "rm data%i.csv; echo Finished Run" % (run)265 full_command = intro_command + command + outro_command266 alfcode += """ Task -title {%s - run %i} -cmds {267 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}268 }269""" % (title_string, run, full_command, service_tag)270for run in range(0, number_runs):271 intro_command = "echo Starting run; cd %sstring-differences/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start14, run, zip_end)272 command = "python map.py %sstring-differences/data%i.csv mapdata%i.csv;" % (output_directory, run, run)273 outro_command = "rm data%i.csv; echo Finished Run" % (run)274 full_command = intro_command + command + outro_command275 alfcode += """ Task -title {%s - run %i} -cmds {276 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}277 }278""" % (title_string, run, full_command, service_tag)279for run in range(0, number_runs):280 intro_command = "echo Starting run; cd %sstring-lengths-backwards/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start15, run, zip_end)281 command = "python map.py %sstring-lengths-backwards/data%i.csv mapdata%i.csv;" % (output_directory, run, run)282 outro_command = "rm data%i.csv; echo Finished Run" % (run)283 full_command = intro_command + command + outro_command284 alfcode += """ Task -title {%s - run %i} -cmds {285 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}286 }287""" % (title_string, run, full_command, service_tag)288for run in range(0, number_runs):289 intro_command = "echo Starting run; cd %ssum-of-squares/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start16, run, zip_end)290 command = "python map.py %ssum-of-squares/data%i.csv mapdata%i.csv;" % (output_directory, run, run)291 outro_command = "rm data%i.csv; echo Finished Run" % (run)292 full_command = intro_command + command + outro_command293 alfcode += """ Task -title {%s - run %i} -cmds {294 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}295 }296""" % (title_string, run, full_command, service_tag)297for run in range(0, number_runs):298 intro_command = "echo Starting run; cd %ssuper-anagrams/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start17, run, zip_end)299 command = "python map.py %ssuper-anagrams/data%i.csv mapdata%i.csv;" % (output_directory, run, run)300 outro_command = "rm data%i.csv; echo Finished Run" % (run)301 full_command = intro_command + command + outro_command302 alfcode += """ Task -title {%s - run %i} -cmds {303 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}304 }305""" % (title_string, run, full_command, service_tag)306for run in range(0, number_runs):307 intro_command = "echo Starting run; cd %ssyllables/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start18, run, zip_end)308 command = "python map.py %ssyllables/data%i.csv mapdata%i.csv;" % (output_directory, run, run)309 outro_command = "rm data%i.csv; echo Finished Run" % (run)310 full_command = intro_command + command + outro_command311 alfcode += """ Task -title {%s - run %i} -cmds {312 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}313 }314""" % (title_string, run, full_command, service_tag)315for run in range(0, number_runs):316 intro_command = "echo Starting run; cd %svector-average/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start19, run, zip_end)317 command = "python map.py %svector-average/data%i.csv mapdata%i.csv;" % (output_directory, run, run)318 outro_command = "rm data%i.csv; echo Finished Run" % (run)319 full_command = intro_command + command + outro_command320 alfcode += """ Task -title {%s - run %i} -cmds {321 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}322 }323""" % (title_string, run, full_command, service_tag)324for run in range(0, number_runs):325 intro_command = "echo Starting run; cd %svectors-summed/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start20, run, zip_end)326 command = "python map.py %svectors-summed/data%i.csv mapdata%i.csv;" % (output_directory, run, run)327 outro_command = "rm data%i.csv; echo Finished Run" % (run)328 full_command = intro_command + command + outro_command329 alfcode += """ Task -title {%s - run %i} -cmds {330 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}331 }332""" % (title_string, run, full_command, service_tag)333for run in range(0, number_runs):334 intro_command = "echo Starting run; cd %swallis-pi/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start21, run, zip_end)335 command = "python map.py %swallis-pi/data%i.csv mapdata%i.csv;" % (output_directory, run, run)336 outro_command = "rm data%i.csv; echo Finished Run" % (run)337 full_command = intro_command + command + outro_command338 alfcode += """ Task -title {%s - run %i} -cmds {339 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}340 }341""" % (title_string, run, full_command, service_tag)342for run in range(0, number_runs):343 intro_command = "echo Starting run; cd %sword-stats/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start22, run, zip_end)344 command = "python map.py %sword-stats/data%i.csv mapdata%i.csv;" % (output_directory, run, run)345 outro_command = "rm data%i.csv; echo Finished Run" % (run)346 full_command = intro_command + command + outro_command347 alfcode += """ Task -title {%s - run %i} -cmds {348 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}349 }350""" % (title_string, run, full_command, service_tag)351for run in range(0, number_runs):352 intro_command = "echo Starting run; cd %sx-word-lines/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start23, run, zip_end)353 command = "python map.py %sx-word-lines/data%i.csv mapdata%i.csv;" % (output_directory, run, run)354 outro_command = "rm data%i.csv; echo Finished Run" % (run)355 full_command = intro_command + command + outro_command356 alfcode += """ Task -title {%s - run %i} -cmds {357 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}358 }359""" % (title_string, run, full_command, service_tag)360for run in range(0, number_runs):361 intro_command = "echo Starting run; cd %schecksum/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start24, run, zip_end)362 command = "python map.py %schecksum/data%i.csv mapdata%i.csv;" % (output_directory, run, run)363 outro_command = "rm data%i.csv; echo Finished Run" % (run)364 full_command = intro_command + command + outro_command365 alfcode += """ Task -title {%s - run %i} -cmds {366 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}367 }368""" % (title_string, run, full_command, service_tag)369for run in range(0, number_runs):370 intro_command = "echo Starting run; cd %scollatz-numbers/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start25, run, zip_end)371 command = "python map.py %scollatz-numbers/data%i.csv mapdata%i.csv;" % (output_directory, run, run)372 outro_command = "rm data%i.csv; echo Finished Run" % (run)373 full_command = intro_command + command + outro_command374 alfcode += """ Task -title {%s - run %i} -cmds {375 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}376 }377""" % (title_string, run, full_command, service_tag)378for run in range(0, number_runs):379 intro_command = "echo Starting run; cd %scompare-string-lengths/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start26, run, zip_end)380 command = "python map.py %scompare-string-lengths/data%i.csv mapdata%i.csv;" % (output_directory, run, run)381 outro_command = "rm data%i.csv; echo Finished Run" % (run)382 full_command = intro_command + command + outro_command383 alfcode += """ Task -title {%s - run %i} -cmds {384 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}385 }386""" % (title_string, run, full_command, service_tag)387for run in range(0, number_runs):388 intro_command = "echo Starting run; cd %scount-odds/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start27, run, zip_end)389 command = "python map.py %scount-odds/data%i.csv mapdata%i.csv;" % (output_directory, run, run)390 outro_command = "rm data%i.csv; echo Finished Run" % (run)391 full_command = intro_command + command + outro_command392 alfcode += """ Task -title {%s - run %i} -cmds {393 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}394 }395""" % (title_string, run, full_command, service_tag)396for run in range(0, number_runs):397 intro_command = "echo Starting run; cd %sdigits/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start28, run, zip_end)398 command = "python map.py %sdigits/data%i.csv mapdata%i.csv;" % (output_directory, run, run)399 outro_command = "rm data%i.csv; echo Finished Run" % (run)400 full_command = intro_command + command + outro_command401 alfcode += """ Task -title {%s - run %i} -cmds {402 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}403 }404""" % (title_string, run, full_command, service_tag)405for run in range(0, number_runs):406 intro_command = "echo Starting run; cd %sdouble-letters/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; %s%i%s;" % (output_directory, zip_start29, run, zip_end)407 command = "python map.py %sdouble-letters/data%i.csv mapdata%i.csv;" % (output_directory, run, run)408 outro_command = "rm data%i.csv; echo Finished Run" % (run)409 full_command = intro_command + command + outro_command410 alfcode += """ Task -title {%s - run %i} -cmds {411 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}412 }413""" % (title_string, run, full_command, service_tag)414alfcode += "}\n"415alf_f.writelines(alfcode)416alf_f.close()417# Don't touch this Woolson418# Run tractor command419source_string = "source /etc/sysconfig/pixar"420pixar_string = "/opt/pixar/tractor-blade-1.7.2/python/bin/python2.6 /opt/pixar/tractor-blade-1.7.2/tractor-spool.py --engine=fly:8000"...

Full Screen

Full Screen

uninstall_zenmap

Source:uninstall_zenmap Github

copy

Full Screen

1#!/usr/bin/env python2import errno, os, os.path, sys3print 'Uninstall Zenmap 4.85BETA5'4answer = raw_input('Are you sure that you want to uninstall Zenmap 4.85BETA5? (yes/no) ')5if answer != 'yes' and answer != 'y':6 print 'Not uninstalling.'7 sys.exit(0)8INSTALLED_FILES = (9 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitConfigParser.py',10 '/usr/local/lib/python2.4/site-packages/zenmapCore/Name.py',11 '/usr/local/lib/python2.4/site-packages/zenmapCore/NmapOptions.py',12 '/usr/local/lib/python2.4/site-packages/zenmapCore/NmapCommand.py',13 '/usr/local/lib/python2.4/site-packages/zenmapCore/BasePaths.py',14 '/usr/local/lib/python2.4/site-packages/zenmapCore/__init__.py',15 '/usr/local/lib/python2.4/site-packages/zenmapCore/BugRegister.py',16 '/usr/local/lib/python2.4/site-packages/zenmapCore/TargetList.py',17 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitOptionParser.py',18 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitDB.py',19 '/usr/local/lib/python2.4/site-packages/zenmapCore/NmapParser.py',20 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitLogging.py',21 '/usr/local/lib/python2.4/site-packages/zenmapCore/Diff.py',22 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitConf.py',23 '/usr/local/lib/python2.4/site-packages/zenmapCore/I18N.py',24 '/usr/local/lib/python2.4/site-packages/zenmapCore/Version.py',25 '/usr/local/lib/python2.4/site-packages/zenmapCore/SearchResult.py',26 '/usr/local/lib/python2.4/site-packages/zenmapCore/Paths.py',27 '/usr/local/lib/python2.4/site-packages/zenmapCore/RecentScans.py',28 '/usr/local/lib/python2.4/site-packages/zenmapCore/NetworkInventory.py',29 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanToolbar.py',30 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanNmapOutputPage.py',31 '/usr/local/lib/python2.4/site-packages/zenmapGUI/Splash.py',32 '/usr/local/lib/python2.4/site-packages/zenmapGUI/NmapOutputProperties.py',33 '/usr/local/lib/python2.4/site-packages/zenmapGUI/CrashReport.py',34 '/usr/local/lib/python2.4/site-packages/zenmapGUI/__init__.py',35 '/usr/local/lib/python2.4/site-packages/zenmapGUI/TopologyPage.py',36 '/usr/local/lib/python2.4/site-packages/zenmapGUI/OptionBuilder.py',37 '/usr/local/lib/python2.4/site-packages/zenmapGUI/BugReport.py',38 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanOpenPortsPage.py',39 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanHostDetailsPage.py',40 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanScanListPage.py',41 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ProfileCombo.py',42 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanHostsView.py',43 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ProfileHelp.py',44 '/usr/local/lib/python2.4/site-packages/zenmapGUI/MainWindow.py',45 '/usr/local/lib/python2.4/site-packages/zenmapGUI/Icons.py',46 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanRunDetailsPage.py',47 '/usr/local/lib/python2.4/site-packages/zenmapGUI/NmapOutputViewer.py',48 '/usr/local/lib/python2.4/site-packages/zenmapGUI/App.py',49 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScansListStore.py',50 '/usr/local/lib/python2.4/site-packages/zenmapGUI/Wizard.py',51 '/usr/local/lib/python2.4/site-packages/zenmapGUI/TargetCombo.py',52 '/usr/local/lib/python2.4/site-packages/zenmapGUI/DiffCompare.py',53 '/usr/local/lib/python2.4/site-packages/zenmapGUI/SearchWindow.py',54 '/usr/local/lib/python2.4/site-packages/zenmapGUI/SearchGUI.py',55 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ProfileEditor.py',56 '/usr/local/lib/python2.4/site-packages/zenmapGUI/About.py',57 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanNotebook.py',58 '/usr/local/lib/python2.4/site-packages/zenmapGUI/FileChoosers.py',59 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higdialogs.py',60 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higscrollers.py',61 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higlogindialogs.py',62 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higwindows.py',63 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/__init__.py',64 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higboxes.py',65 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higbuttons.py',66 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higtables.py',67 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higspinner.py',68 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higprogressbars.py',69 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higtextviewers.py',70 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/hignotebooks.py',71 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higlabels.py',72 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higframe.py',73 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higentries.py',74 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/gtkutils.py',75 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higexpanders.py',76 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/utils.py',77 '/usr/local/lib/python2.4/site-packages/radialnet/__init__.py',78 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/comboboxes.py',79 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/__init__.py',80 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/labels.py',81 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/frames.py',82 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/windows.py',83 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/boxes.py',84 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/buttons.py',85 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/textview.py',86 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/expanders.py',87 '/usr/local/lib/python2.4/site-packages/radialnet/core/Interpolation.py',88 '/usr/local/lib/python2.4/site-packages/radialnet/core/Info.py',89 '/usr/local/lib/python2.4/site-packages/radialnet/core/Graph.py',90 '/usr/local/lib/python2.4/site-packages/radialnet/core/__init__.py',91 '/usr/local/lib/python2.4/site-packages/radialnet/core/XMLHandler.py',92 '/usr/local/lib/python2.4/site-packages/radialnet/core/ArgvHandle.py',93 '/usr/local/lib/python2.4/site-packages/radialnet/core/Coordinate.py',94 '/usr/local/lib/python2.4/site-packages/radialnet/gui/HostsViewer.py',95 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Toolbar.py',96 '/usr/local/lib/python2.4/site-packages/radialnet/gui/RadialNet.py',97 '/usr/local/lib/python2.4/site-packages/radialnet/gui/NodeWindow.py',98 '/usr/local/lib/python2.4/site-packages/radialnet/gui/__init__.py',99 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Image.py',100 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Dialogs.py',101 '/usr/local/lib/python2.4/site-packages/radialnet/gui/ControlWidget.py',102 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Application.py',103 '/usr/local/lib/python2.4/site-packages/radialnet/gui/NodeNotebook.py',104 '/usr/local/lib/python2.4/site-packages/radialnet/util/misc.py',105 '/usr/local/lib/python2.4/site-packages/radialnet/util/integration.py',106 '/usr/local/lib/python2.4/site-packages/radialnet/util/drawing.py',107 '/usr/local/lib/python2.4/site-packages/radialnet/util/__init__.py',108 '/usr/local/lib/python2.4/site-packages/radialnet/util/geometry.py',109 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitConfigParser.pyc',110 '/usr/local/lib/python2.4/site-packages/zenmapCore/Name.pyc',111 '/usr/local/lib/python2.4/site-packages/zenmapCore/NmapOptions.pyc',112 '/usr/local/lib/python2.4/site-packages/zenmapCore/NmapCommand.pyc',113 '/usr/local/lib/python2.4/site-packages/zenmapCore/BasePaths.pyc',114 '/usr/local/lib/python2.4/site-packages/zenmapCore/__init__.pyc',115 '/usr/local/lib/python2.4/site-packages/zenmapCore/BugRegister.pyc',116 '/usr/local/lib/python2.4/site-packages/zenmapCore/TargetList.pyc',117 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitOptionParser.pyc',118 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitDB.pyc',119 '/usr/local/lib/python2.4/site-packages/zenmapCore/NmapParser.pyc',120 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitLogging.pyc',121 '/usr/local/lib/python2.4/site-packages/zenmapCore/Diff.pyc',122 '/usr/local/lib/python2.4/site-packages/zenmapCore/UmitConf.pyc',123 '/usr/local/lib/python2.4/site-packages/zenmapCore/I18N.pyc',124 '/usr/local/lib/python2.4/site-packages/zenmapCore/Version.pyc',125 '/usr/local/lib/python2.4/site-packages/zenmapCore/SearchResult.pyc',126 '/usr/local/lib/python2.4/site-packages/zenmapCore/Paths.pyc',127 '/usr/local/lib/python2.4/site-packages/zenmapCore/RecentScans.pyc',128 '/usr/local/lib/python2.4/site-packages/zenmapCore/NetworkInventory.pyc',129 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanToolbar.pyc',130 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanNmapOutputPage.pyc',131 '/usr/local/lib/python2.4/site-packages/zenmapGUI/Splash.pyc',132 '/usr/local/lib/python2.4/site-packages/zenmapGUI/NmapOutputProperties.pyc',133 '/usr/local/lib/python2.4/site-packages/zenmapGUI/CrashReport.pyc',134 '/usr/local/lib/python2.4/site-packages/zenmapGUI/__init__.pyc',135 '/usr/local/lib/python2.4/site-packages/zenmapGUI/TopologyPage.pyc',136 '/usr/local/lib/python2.4/site-packages/zenmapGUI/OptionBuilder.pyc',137 '/usr/local/lib/python2.4/site-packages/zenmapGUI/BugReport.pyc',138 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanOpenPortsPage.pyc',139 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanHostDetailsPage.pyc',140 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanScanListPage.pyc',141 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ProfileCombo.pyc',142 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanHostsView.pyc',143 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ProfileHelp.pyc',144 '/usr/local/lib/python2.4/site-packages/zenmapGUI/MainWindow.pyc',145 '/usr/local/lib/python2.4/site-packages/zenmapGUI/Icons.pyc',146 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanRunDetailsPage.pyc',147 '/usr/local/lib/python2.4/site-packages/zenmapGUI/NmapOutputViewer.pyc',148 '/usr/local/lib/python2.4/site-packages/zenmapGUI/App.pyc',149 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScansListStore.pyc',150 '/usr/local/lib/python2.4/site-packages/zenmapGUI/Wizard.pyc',151 '/usr/local/lib/python2.4/site-packages/zenmapGUI/TargetCombo.pyc',152 '/usr/local/lib/python2.4/site-packages/zenmapGUI/DiffCompare.pyc',153 '/usr/local/lib/python2.4/site-packages/zenmapGUI/SearchWindow.pyc',154 '/usr/local/lib/python2.4/site-packages/zenmapGUI/SearchGUI.pyc',155 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ProfileEditor.pyc',156 '/usr/local/lib/python2.4/site-packages/zenmapGUI/About.pyc',157 '/usr/local/lib/python2.4/site-packages/zenmapGUI/ScanNotebook.pyc',158 '/usr/local/lib/python2.4/site-packages/zenmapGUI/FileChoosers.pyc',159 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higdialogs.pyc',160 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higscrollers.pyc',161 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higlogindialogs.pyc',162 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higwindows.pyc',163 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/__init__.pyc',164 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higboxes.pyc',165 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higbuttons.pyc',166 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higtables.pyc',167 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higspinner.pyc',168 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higprogressbars.pyc',169 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higtextviewers.pyc',170 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/hignotebooks.pyc',171 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higlabels.pyc',172 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higframe.pyc',173 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higentries.pyc',174 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/gtkutils.pyc',175 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/higexpanders.pyc',176 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets/utils.pyc',177 '/usr/local/lib/python2.4/site-packages/radialnet/__init__.pyc',178 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/comboboxes.pyc',179 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/__init__.pyc',180 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/labels.pyc',181 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/frames.pyc',182 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/windows.pyc',183 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/boxes.pyc',184 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/buttons.pyc',185 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/textview.pyc',186 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets/expanders.pyc',187 '/usr/local/lib/python2.4/site-packages/radialnet/core/Interpolation.pyc',188 '/usr/local/lib/python2.4/site-packages/radialnet/core/Info.pyc',189 '/usr/local/lib/python2.4/site-packages/radialnet/core/Graph.pyc',190 '/usr/local/lib/python2.4/site-packages/radialnet/core/__init__.pyc',191 '/usr/local/lib/python2.4/site-packages/radialnet/core/XMLHandler.pyc',192 '/usr/local/lib/python2.4/site-packages/radialnet/core/ArgvHandle.pyc',193 '/usr/local/lib/python2.4/site-packages/radialnet/core/Coordinate.pyc',194 '/usr/local/lib/python2.4/site-packages/radialnet/gui/HostsViewer.pyc',195 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Toolbar.pyc',196 '/usr/local/lib/python2.4/site-packages/radialnet/gui/RadialNet.pyc',197 '/usr/local/lib/python2.4/site-packages/radialnet/gui/NodeWindow.pyc',198 '/usr/local/lib/python2.4/site-packages/radialnet/gui/__init__.pyc',199 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Image.pyc',200 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Dialogs.pyc',201 '/usr/local/lib/python2.4/site-packages/radialnet/gui/ControlWidget.pyc',202 '/usr/local/lib/python2.4/site-packages/radialnet/gui/Application.pyc',203 '/usr/local/lib/python2.4/site-packages/radialnet/gui/NodeNotebook.pyc',204 '/usr/local/lib/python2.4/site-packages/radialnet/util/misc.pyc',205 '/usr/local/lib/python2.4/site-packages/radialnet/util/integration.pyc',206 '/usr/local/lib/python2.4/site-packages/radialnet/util/drawing.pyc',207 '/usr/local/lib/python2.4/site-packages/radialnet/util/__init__.pyc',208 '/usr/local/lib/python2.4/site-packages/radialnet/util/geometry.pyc',209 '/usr/local/bin/zenmap',210 '/usr/local/share/zenmap/pixmaps/unknown.svg',211 '/usr/local/share/zenmap/pixmaps/freebsd.svg',212 '/usr/local/share/zenmap/pixmaps/redhat.svg',213 '/usr/local/share/zenmap/pixmaps/vl_3.svg',214 '/usr/local/share/zenmap/pixmaps/irix.svg',215 '/usr/local/share/zenmap/pixmaps/ubuntu.svg',216 '/usr/local/share/zenmap/pixmaps/openbsd.svg',217 '/usr/local/share/zenmap/pixmaps/vl_2.svg',218 '/usr/local/share/zenmap/pixmaps/vl_4.svg',219 '/usr/local/share/zenmap/pixmaps/win.svg',220 '/usr/local/share/zenmap/pixmaps/solaris.svg',221 '/usr/local/share/zenmap/pixmaps/linux.svg',222 '/usr/local/share/zenmap/pixmaps/default.svg',223 '/usr/local/share/zenmap/pixmaps/macosx.svg',224 '/usr/local/share/zenmap/pixmaps/vl_5.svg',225 '/usr/local/share/zenmap/pixmaps/vl_1.svg',226 '/usr/local/share/zenmap/pixmaps/splash.png',227 '/usr/local/share/zenmap/pixmaps/win_75.png',228 '/usr/local/share/zenmap/pixmaps/wizard_logo.png',229 '/usr/local/share/zenmap/pixmaps/vl_3_32.png',230 '/usr/local/share/zenmap/pixmaps/win_32.png',231 '/usr/local/share/zenmap/pixmaps/macosx_32.png',232 '/usr/local/share/zenmap/pixmaps/irix_75.png',233 '/usr/local/share/zenmap/pixmaps/solaris_75.png',234 '/usr/local/share/zenmap/pixmaps/ubuntu_32.png',235 '/usr/local/share/zenmap/pixmaps/openbsd_75.png',236 '/usr/local/share/zenmap/pixmaps/openbsd_32.png',237 '/usr/local/share/zenmap/pixmaps/vl_2_75.png',238 '/usr/local/share/zenmap/pixmaps/ubuntu_75.png',239 '/usr/local/share/zenmap/pixmaps/default_32.png',240 '/usr/local/share/zenmap/pixmaps/vl_1_32.png',241 '/usr/local/share/zenmap/pixmaps/redhat_32.png',242 '/usr/local/share/zenmap/pixmaps/zenmap.png',243 '/usr/local/share/zenmap/pixmaps/solaris_32.png',244 '/usr/local/share/zenmap/pixmaps/default_75.png',245 '/usr/local/share/zenmap/pixmaps/vl_3_75.png',246 '/usr/local/share/zenmap/pixmaps/freebsd_32.png',247 '/usr/local/share/zenmap/pixmaps/linux_75.png',248 '/usr/local/share/zenmap/pixmaps/irix_32.png',249 '/usr/local/share/zenmap/pixmaps/unknown_32.png',250 '/usr/local/share/zenmap/pixmaps/macosx_75.png',251 '/usr/local/share/zenmap/pixmaps/linux_32.png',252 '/usr/local/share/zenmap/pixmaps/vl_5_75.png',253 '/usr/local/share/zenmap/pixmaps/vl_4_75.png',254 '/usr/local/share/zenmap/pixmaps/freebsd_75.png',255 '/usr/local/share/zenmap/pixmaps/vl_5_32.png',256 '/usr/local/share/zenmap/pixmaps/vl_2_32.png',257 '/usr/local/share/zenmap/pixmaps/unknown_75.png',258 '/usr/local/share/zenmap/pixmaps/redhat_75.png',259 '/usr/local/share/zenmap/pixmaps/vl_1_75.png',260 '/usr/local/share/zenmap/pixmaps/vl_4_32.png',261 '/usr/local/share/zenmap/pixmaps/radialnet/logo.svg',262 '/usr/local/share/zenmap/pixmaps/radialnet/padlock.png',263 '/usr/local/share/zenmap/pixmaps/radialnet/logo.png',264 '/usr/local/share/zenmap/pixmaps/radialnet/switch.png',265 '/usr/local/share/zenmap/pixmaps/radialnet/firewall.png',266 '/usr/local/share/zenmap/pixmaps/radialnet/border.png',267 '/usr/local/share/zenmap/pixmaps/radialnet/wireless.png',268 '/usr/local/share/zenmap/pixmaps/radialnet/router.png',269 '/usr/local/share/zenmap/config/zenmap.conf',270 '/usr/local/share/zenmap/config/scan_profile.usp',271 '/usr/local/share/zenmap/config/zenmap_version',272 '/usr/local/share/zenmap/misc/wizard.xml',273 '/usr/local/share/zenmap/misc/profile_editor.xml',274 '/usr/local/share/zenmap/docs/help.html',275 '/usr/local/share/zenmap/locale/hr/LC_MESSAGES/zenmap.mo',276 '/usr/local/share/zenmap/locale/fr/LC_MESSAGES/zenmap.mo',277 '/usr/local/share/zenmap/locale/de/LC_MESSAGES/zenmap.mo',278 '/usr/local/share/zenmap/locale/pt_BR/LC_MESSAGES/zenmap.mo',279 '/usr/local/share/applications/zenmap.desktop',280 '/usr/local/share/applications/zenmap-root.desktop',281 '/usr/local/share/zenmap/su-to-zenmap.sh',282 '/usr/local/lib/python2.4/site-packages/zenmapCore',283 '/usr/local/lib/python2.4/site-packages/zenmapGUI',284 '/usr/local/lib/python2.4/site-packages/zenmapGUI/higwidgets',285 '/usr/local/lib/python2.4/site-packages/radialnet',286 '/usr/local/lib/python2.4/site-packages/radialnet/bestwidgets',287 '/usr/local/lib/python2.4/site-packages/radialnet/core',288 '/usr/local/lib/python2.4/site-packages/radialnet/gui',289 '/usr/local/lib/python2.4/site-packages/radialnet/util',290 '/usr/local/share/zenmap',291 '/usr/local/share/zenmap/misc',292 '/usr/local/share/zenmap/docs',293 '/usr/local/share/zenmap/config',294 '/usr/local/share/zenmap/locale',295 '/usr/local/share/zenmap/pixmaps',296 '/usr/local/share/zenmap/locale/hr',297 '/usr/local/share/zenmap/locale/fr',298 '/usr/local/share/zenmap/locale/de',299 '/usr/local/share/zenmap/locale/pt_BR',300 '/usr/local/share/zenmap/locale/hr/LC_MESSAGES',301 '/usr/local/share/zenmap/locale/fr/LC_MESSAGES',302 '/usr/local/share/zenmap/locale/de/LC_MESSAGES',303 '/usr/local/share/zenmap/locale/pt_BR/LC_MESSAGES',304 '/usr/local/share/zenmap/pixmaps/radialnet',305 '/usr/local/bin/uninstall_zenmap',306)307# Split the list into lists of files and directories.308files = []309dirs = []310for path in INSTALLED_FILES:311 if os.path.isfile(path) or os.path.islink(path):312 files.append(path)313 elif os.path.isdir(path):314 dirs.append(path)315# Delete the files.316for file in files:317 print "Removing '%s'." % file318 try:319 os.remove(file)320 except OSError, e:321 print >> sys.stderr, ' Error: %s.' % str(e)322# Delete the directories. First reverse-sort the normalized paths by323# length so that child directories are deleted before their parents.324dirs = [os.path.normpath(dir) for dir in dirs]325dirs.sort(key = len, reverse = True)326for dir in dirs:327 try:328 print "Removing the directory '%s'." % dir329 os.rmdir(dir)330 except OSError, e:331 if e.errno == errno.ENOTEMPTY:332 print "Directory '%s' not empty; not removing." % dir333 else:...

Full Screen

Full Screen

BUILD

Source:BUILD Github

copy

Full Screen

1# A build file to configure python remote repository used with Bazel remote2# execution service3# DO NOT EDIT: automatically generated BUILD file4licenses(["restricted"])5package(default_visibility = ["//visibility:public"])6cc_library(7 name = "python_headers",8 hdrs = [":python_include"],9 data = select({10 ":windows": [":python_import_lib"],11 "//conditions:default": [],12 }),13 includes = ["python_include"],14 linkopts = select({15 # TODO(pcloudy): Ideally, this should just go into deps after resolving16 # https://github.com/bazelbuild/bazel/issues/3237,17 ":windows": ["$(locations :python_import_lib)"],18 "//conditions:default": [],19 }),20)21cc_library(22 name = "numpy_headers",23 hdrs = [":numpy_include"],24 includes = ["numpy_include"],25)26config_setting(27 name = "windows",28 values = {"cpu": "x64_windows"},29 visibility = ["//visibility:public"],30)31genrule(32 name = "python_include",33 outs = [34 "python_include/code.h",35 "python_include/dtoa.h",36 "python_include/tupleobject.h",37 "python_include/object.h",38 "python_include/ast.h",39 "python_include/pymacconfig.h",40 "python_include/errcode.h",41 "python_include/frameobject.h",42 "python_include/pgenheaders.h",43 "python_include/cellobject.h",44 "python_include/intobject.h",45 "python_include/pythread.h",46 "python_include/cStringIO.h",47 "python_include/boolobject.h",48 "python_include/modsupport.h",49 "python_include/import.h",50 "python_include/pymath.h",51 "python_include/node.h",52 "python_include/funcobject.h",53 "python_include/eval.h",54 "python_include/longintrepr.h",55 "python_include/floatobject.h",56 "python_include/rangeobject.h",57 "python_include/pyfpe.h",58 "python_include/pystrcmp.h",59 "python_include/dictobject.h",60 "python_include/pyarena.h",61 "python_include/objimpl.h",62 "python_include/bitset.h",63 "python_include/memoryobject.h",64 "python_include/bytearrayobject.h",65 "python_include/pydebug.h",66 "python_include/pyerrors.h",67 "python_include/weakrefobject.h",68 "python_include/grammar.h",69 "python_include/symtable.h",70 "python_include/longobject.h",71 "python_include/structmember.h",72 "python_include/enumobject.h",73 "python_include/classobject.h",74 "python_include/unicodeobject.h",75 "python_include/sliceobject.h",76 "python_include/pystrtod.h",77 "python_include/genobject.h",78 "python_include/pymactoolbox.h",79 "python_include/compile.h",80 "python_include/pyexpat.h",81 "python_include/asdl.h",82 "python_include/codecs.h",83 "python_include/pyctype.h",84 "python_include/sysmodule.h",85 "python_include/methodobject.h",86 "python_include/graminit.h",87 "python_include/cobject.h",88 "python_include/intrcheck.h",89 "python_include/pyport.h",90 "python_include/warnings.h",91 "python_include/osdefs.h",92 "python_include/fileobject.h",93 "python_include/stringobject.h",94 "python_include/timefuncs.h",95 "python_include/traceback.h",96 "python_include/ceval.h",97 "python_include/bytes_methods.h",98 "python_include/pyconfig.h",99 "python_include/Python.h",100 "python_include/moduleobject.h",101 "python_include/pystate.h",102 "python_include/descrobject.h",103 "python_include/ucnhash.h",104 "python_include/pygetopt.h",105 "python_include/pymem.h",106 "python_include/complexobject.h",107 "python_include/structseq.h",108 "python_include/datetime.h",109 "python_include/pythonrun.h",110 "python_include/numpy/oldnumeric.h",111 "python_include/numpy/npy_1_7_deprecated_api.h",112 "python_include/numpy/ufunc_api.txt",113 "python_include/numpy/multiarray_api.txt",114 "python_include/numpy/halffloat.h",115 "python_include/numpy/npy_common.h",116 "python_include/numpy/utils.h",117 "python_include/numpy/npy_interrupt.h",118 "python_include/numpy/npy_endian.h",119 "python_include/numpy/__ufunc_api.h",120 "python_include/numpy/_neighborhood_iterator_imp.h",121 "python_include/numpy/ufuncobject.h",122 "python_include/numpy/ndarraytypes.h",123 "python_include/numpy/npy_math.h",124 "python_include/numpy/noprefix.h",125 "python_include/numpy/npy_3kcompat.h",126 "python_include/numpy/arrayscalars.h",127 "python_include/numpy/npy_os.h",128 "python_include/numpy/ndarrayobject.h",129 "python_include/numpy/npy_no_deprecated_api.h",130 "python_include/numpy/arrayobject.h",131 "python_include/numpy/_numpyconfig.h",132 "python_include/numpy/__multiarray_api.h",133 "python_include/numpy/npy_cpu.h",134 "python_include/numpy/old_defines.h",135 "python_include/numpy/numpyconfig.h",136 "python_include/pycapsule.h",137 "python_include/setobject.h",138 "python_include/listobject.h",139 "python_include/bytesobject.h",140 "python_include/pgen.h",141 "python_include/patchlevel.h",142 "python_include/opcode.h",143 "python_include/parsetok.h",144 "python_include/marshal.h",145 "python_include/token.h",146 "python_include/iterobject.h",147 "python_include/abstract.h",148 "python_include/py_curses.h",149 "python_include/metagrammar.h",150 "python_include/bufferobject.h",151 "python_include/Python-ast.h",152 ],153 cmd = """154cp "/usr/include/python2.7/code.h" "$(@D)/python_include/code.h" && cp "/usr/include/python2.7/dtoa.h" "$(@D)/python_include/dtoa.h" && cp "/usr/include/python2.7/tupleobject.h" "$(@D)/python_include/tupleobject.h" && cp "/usr/include/python2.7/object.h" "$(@D)/python_include/object.h" && cp "/usr/include/python2.7/ast.h" "$(@D)/python_include/ast.h" && cp "/usr/include/python2.7/pymacconfig.h" "$(@D)/python_include/pymacconfig.h" && cp "/usr/include/python2.7/errcode.h" "$(@D)/python_include/errcode.h" && cp "/usr/include/python2.7/frameobject.h" "$(@D)/python_include/frameobject.h" && cp "/usr/include/python2.7/pgenheaders.h" "$(@D)/python_include/pgenheaders.h" && cp "/usr/include/python2.7/cellobject.h" "$(@D)/python_include/cellobject.h" && cp "/usr/include/python2.7/intobject.h" "$(@D)/python_include/intobject.h" && cp "/usr/include/python2.7/pythread.h" "$(@D)/python_include/pythread.h" && cp "/usr/include/python2.7/cStringIO.h" "$(@D)/python_include/cStringIO.h" && cp "/usr/include/python2.7/boolobject.h" "$(@D)/python_include/boolobject.h" && cp "/usr/include/python2.7/modsupport.h" "$(@D)/python_include/modsupport.h" && cp "/usr/include/python2.7/import.h" "$(@D)/python_include/import.h" && cp "/usr/include/python2.7/pymath.h" "$(@D)/python_include/pymath.h" && cp "/usr/include/python2.7/node.h" "$(@D)/python_include/node.h" && cp "/usr/include/python2.7/funcobject.h" "$(@D)/python_include/funcobject.h" && cp "/usr/include/python2.7/eval.h" "$(@D)/python_include/eval.h" && cp "/usr/include/python2.7/longintrepr.h" "$(@D)/python_include/longintrepr.h" && cp "/usr/include/python2.7/floatobject.h" "$(@D)/python_include/floatobject.h" && cp "/usr/include/python2.7/rangeobject.h" "$(@D)/python_include/rangeobject.h" && cp "/usr/include/python2.7/pyfpe.h" "$(@D)/python_include/pyfpe.h" && cp "/usr/include/python2.7/pystrcmp.h" "$(@D)/python_include/pystrcmp.h" && cp "/usr/include/python2.7/dictobject.h" "$(@D)/python_include/dictobject.h" && cp "/usr/include/python2.7/pyarena.h" "$(@D)/python_include/pyarena.h" && cp "/usr/include/python2.7/objimpl.h" "$(@D)/python_include/objimpl.h" && cp "/usr/include/python2.7/bitset.h" "$(@D)/python_include/bitset.h" && cp "/usr/include/python2.7/memoryobject.h" "$(@D)/python_include/memoryobject.h" && cp "/usr/include/python2.7/bytearrayobject.h" "$(@D)/python_include/bytearrayobject.h" && cp "/usr/include/python2.7/pydebug.h" "$(@D)/python_include/pydebug.h" && cp "/usr/include/python2.7/pyerrors.h" "$(@D)/python_include/pyerrors.h" && cp "/usr/include/python2.7/weakrefobject.h" "$(@D)/python_include/weakrefobject.h" && cp "/usr/include/python2.7/grammar.h" "$(@D)/python_include/grammar.h" && cp "/usr/include/python2.7/symtable.h" "$(@D)/python_include/symtable.h" && cp "/usr/include/python2.7/longobject.h" "$(@D)/python_include/longobject.h" && cp "/usr/include/python2.7/structmember.h" "$(@D)/python_include/structmember.h" && cp "/usr/include/python2.7/enumobject.h" "$(@D)/python_include/enumobject.h" && cp "/usr/include/python2.7/classobject.h" "$(@D)/python_include/classobject.h" && cp "/usr/include/python2.7/unicodeobject.h" "$(@D)/python_include/unicodeobject.h" && cp "/usr/include/python2.7/sliceobject.h" "$(@D)/python_include/sliceobject.h" && cp "/usr/include/python2.7/pystrtod.h" "$(@D)/python_include/pystrtod.h" && cp "/usr/include/python2.7/genobject.h" "$(@D)/python_include/genobject.h" && cp "/usr/include/python2.7/pymactoolbox.h" "$(@D)/python_include/pymactoolbox.h" && cp "/usr/include/python2.7/compile.h" "$(@D)/python_include/compile.h" && cp "/usr/include/python2.7/pyexpat.h" "$(@D)/python_include/pyexpat.h" && cp "/usr/include/python2.7/asdl.h" "$(@D)/python_include/asdl.h" && cp "/usr/include/python2.7/codecs.h" "$(@D)/python_include/codecs.h" && cp "/usr/include/python2.7/pyctype.h" "$(@D)/python_include/pyctype.h" && cp "/usr/include/python2.7/sysmodule.h" "$(@D)/python_include/sysmodule.h" && cp "/usr/include/python2.7/methodobject.h" "$(@D)/python_include/methodobject.h" && cp "/usr/include/python2.7/graminit.h" "$(@D)/python_include/graminit.h" && cp "/usr/include/python2.7/cobject.h" "$(@D)/python_include/cobject.h" && cp "/usr/include/python2.7/intrcheck.h" "$(@D)/python_include/intrcheck.h" && cp "/usr/include/python2.7/pyport.h" "$(@D)/python_include/pyport.h" && cp "/usr/include/python2.7/warnings.h" "$(@D)/python_include/warnings.h" && cp "/usr/include/python2.7/osdefs.h" "$(@D)/python_include/osdefs.h" && cp "/usr/include/python2.7/fileobject.h" "$(@D)/python_include/fileobject.h" && cp "/usr/include/python2.7/stringobject.h" "$(@D)/python_include/stringobject.h" && cp "/usr/include/python2.7/timefuncs.h" "$(@D)/python_include/timefuncs.h" && cp "/usr/include/python2.7/traceback.h" "$(@D)/python_include/traceback.h" && cp "/usr/include/python2.7/ceval.h" "$(@D)/python_include/ceval.h" && cp "/usr/include/python2.7/bytes_methods.h" "$(@D)/python_include/bytes_methods.h" && cp "/usr/include/python2.7/pyconfig.h" "$(@D)/python_include/pyconfig.h" && cp "/usr/include/python2.7/Python.h" "$(@D)/python_include/Python.h" && cp "/usr/include/python2.7/moduleobject.h" "$(@D)/python_include/moduleobject.h" && cp "/usr/include/python2.7/pystate.h" "$(@D)/python_include/pystate.h" && cp "/usr/include/python2.7/descrobject.h" "$(@D)/python_include/descrobject.h" && cp "/usr/include/python2.7/ucnhash.h" "$(@D)/python_include/ucnhash.h" && cp "/usr/include/python2.7/pygetopt.h" "$(@D)/python_include/pygetopt.h" && cp "/usr/include/python2.7/pymem.h" "$(@D)/python_include/pymem.h" && cp "/usr/include/python2.7/complexobject.h" "$(@D)/python_include/complexobject.h" && cp "/usr/include/python2.7/structseq.h" "$(@D)/python_include/structseq.h" && cp "/usr/include/python2.7/datetime.h" "$(@D)/python_include/datetime.h" && cp "/usr/include/python2.7/pythonrun.h" "$(@D)/python_include/pythonrun.h" && cp "/usr/include/python2.7/numpy/oldnumeric.h" "$(@D)/python_include/numpy/oldnumeric.h" && cp "/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h" "$(@D)/python_include/numpy/npy_1_7_deprecated_api.h" && cp "/usr/include/python2.7/numpy/ufunc_api.txt" "$(@D)/python_include/numpy/ufunc_api.txt" && cp "/usr/include/python2.7/numpy/multiarray_api.txt" "$(@D)/python_include/numpy/multiarray_api.txt" && cp "/usr/include/python2.7/numpy/halffloat.h" "$(@D)/python_include/numpy/halffloat.h" && cp "/usr/include/python2.7/numpy/npy_common.h" "$(@D)/python_include/numpy/npy_common.h" && cp "/usr/include/python2.7/numpy/utils.h" "$(@D)/python_include/numpy/utils.h" && cp "/usr/include/python2.7/numpy/npy_interrupt.h" "$(@D)/python_include/numpy/npy_interrupt.h" && cp "/usr/include/python2.7/numpy/npy_endian.h" "$(@D)/python_include/numpy/npy_endian.h" && cp "/usr/include/python2.7/numpy/__ufunc_api.h" "$(@D)/python_include/numpy/__ufunc_api.h" && cp "/usr/include/python2.7/numpy/_neighborhood_iterator_imp.h" "$(@D)/python_include/numpy/_neighborhood_iterator_imp.h" && cp "/usr/include/python2.7/numpy/ufuncobject.h" "$(@D)/python_include/numpy/ufuncobject.h" && cp "/usr/include/python2.7/numpy/ndarraytypes.h" "$(@D)/python_include/numpy/ndarraytypes.h" && cp "/usr/include/python2.7/numpy/npy_math.h" "$(@D)/python_include/numpy/npy_math.h" && cp "/usr/include/python2.7/numpy/noprefix.h" "$(@D)/python_include/numpy/noprefix.h" && cp "/usr/include/python2.7/numpy/npy_3kcompat.h" "$(@D)/python_include/numpy/npy_3kcompat.h" && cp "/usr/include/python2.7/numpy/arrayscalars.h" "$(@D)/python_include/numpy/arrayscalars.h" && cp "/usr/include/python2.7/numpy/npy_os.h" "$(@D)/python_include/numpy/npy_os.h" && cp "/usr/include/python2.7/numpy/ndarrayobject.h" "$(@D)/python_include/numpy/ndarrayobject.h" && cp "/usr/include/python2.7/numpy/npy_no_deprecated_api.h" "$(@D)/python_include/numpy/npy_no_deprecated_api.h" && cp "/usr/include/python2.7/numpy/arrayobject.h" "$(@D)/python_include/numpy/arrayobject.h" && cp "/usr/include/python2.7/numpy/_numpyconfig.h" "$(@D)/python_include/numpy/_numpyconfig.h" && cp "/usr/include/python2.7/numpy/__multiarray_api.h" "$(@D)/python_include/numpy/__multiarray_api.h" && cp "/usr/include/python2.7/numpy/npy_cpu.h" "$(@D)/python_include/numpy/npy_cpu.h" && cp "/usr/include/python2.7/numpy/old_defines.h" "$(@D)/python_include/numpy/old_defines.h" && cp "/usr/include/python2.7/numpy/numpyconfig.h" "$(@D)/python_include/numpy/numpyconfig.h" && cp "/usr/include/python2.7/pycapsule.h" "$(@D)/python_include/pycapsule.h" && cp "/usr/include/python2.7/setobject.h" "$(@D)/python_include/setobject.h" && cp "/usr/include/python2.7/listobject.h" "$(@D)/python_include/listobject.h" && cp "/usr/include/python2.7/bytesobject.h" "$(@D)/python_include/bytesobject.h" && cp "/usr/include/python2.7/pgen.h" "$(@D)/python_include/pgen.h" && cp "/usr/include/python2.7/patchlevel.h" "$(@D)/python_include/patchlevel.h" && cp "/usr/include/python2.7/opcode.h" "$(@D)/python_include/opcode.h" && cp "/usr/include/python2.7/parsetok.h" "$(@D)/python_include/parsetok.h" && cp "/usr/include/python2.7/marshal.h" "$(@D)/python_include/marshal.h" && cp "/usr/include/python2.7/token.h" "$(@D)/python_include/token.h" && cp "/usr/include/python2.7/iterobject.h" "$(@D)/python_include/iterobject.h" && cp "/usr/include/python2.7/abstract.h" "$(@D)/python_include/abstract.h" && cp "/usr/include/python2.7/py_curses.h" "$(@D)/python_include/py_curses.h" && cp "/usr/include/python2.7/metagrammar.h" "$(@D)/python_include/metagrammar.h" && cp "/usr/include/python2.7/bufferobject.h" "$(@D)/python_include/bufferobject.h" && cp "/usr/include/python2.7/Python-ast.h" "$(@D)/python_include/Python-ast.h"155 """,156)157genrule(158 name = "numpy_include",159 outs = [160 "numpy_include/numpy/oldnumeric.h",161 "numpy_include/numpy/npy_1_7_deprecated_api.h",162 "numpy_include/numpy/ufunc_api.txt",163 "numpy_include/numpy/multiarray_api.txt",164 "numpy_include/numpy/halffloat.h",165 "numpy_include/numpy/npy_common.h",166 "numpy_include/numpy/utils.h",167 "numpy_include/numpy/npy_interrupt.h",168 "numpy_include/numpy/npy_endian.h",169 "numpy_include/numpy/__ufunc_api.h",170 "numpy_include/numpy/_neighborhood_iterator_imp.h",171 "numpy_include/numpy/ufuncobject.h",172 "numpy_include/numpy/ndarraytypes.h",173 "numpy_include/numpy/npy_math.h",174 "numpy_include/numpy/noprefix.h",175 "numpy_include/numpy/npy_3kcompat.h",176 "numpy_include/numpy/arrayscalars.h",177 "numpy_include/numpy/npy_os.h",178 "numpy_include/numpy/ndarrayobject.h",179 "numpy_include/numpy/npy_no_deprecated_api.h",180 "numpy_include/numpy/arrayobject.h",181 "numpy_include/numpy/_numpyconfig.h",182 "numpy_include/numpy/__multiarray_api.h",183 "numpy_include/numpy/npy_cpu.h",184 "numpy_include/numpy/old_defines.h",185 "numpy_include/numpy/numpyconfig.h",186 ],187 cmd = """188cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/oldnumeric.h" "$(@D)/numpy_include/numpy/oldnumeric.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h" "$(@D)/numpy_include/numpy/npy_1_7_deprecated_api.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufunc_api.txt" "$(@D)/numpy_include/numpy/ufunc_api.txt" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/multiarray_api.txt" "$(@D)/numpy_include/numpy/multiarray_api.txt" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/halffloat.h" "$(@D)/numpy_include/numpy/halffloat.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_common.h" "$(@D)/numpy_include/numpy/npy_common.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/utils.h" "$(@D)/numpy_include/numpy/utils.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_interrupt.h" "$(@D)/numpy_include/numpy/npy_interrupt.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_endian.h" "$(@D)/numpy_include/numpy/npy_endian.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h" "$(@D)/numpy_include/numpy/__ufunc_api.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h" "$(@D)/numpy_include/numpy/_neighborhood_iterator_imp.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h" "$(@D)/numpy_include/numpy/ufuncobject.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h" "$(@D)/numpy_include/numpy/ndarraytypes.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_math.h" "$(@D)/numpy_include/numpy/npy_math.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/noprefix.h" "$(@D)/numpy_include/numpy/noprefix.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_3kcompat.h" "$(@D)/numpy_include/numpy/npy_3kcompat.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayscalars.h" "$(@D)/numpy_include/numpy/arrayscalars.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_os.h" "$(@D)/numpy_include/numpy/npy_os.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h" "$(@D)/numpy_include/numpy/ndarrayobject.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_no_deprecated_api.h" "$(@D)/numpy_include/numpy/npy_no_deprecated_api.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h" "$(@D)/numpy_include/numpy/arrayobject.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/_numpyconfig.h" "$(@D)/numpy_include/numpy/_numpyconfig.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h" "$(@D)/numpy_include/numpy/__multiarray_api.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_cpu.h" "$(@D)/numpy_include/numpy/npy_cpu.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/old_defines.h" "$(@D)/numpy_include/numpy/old_defines.h" && cp "/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/numpyconfig.h" "$(@D)/numpy_include/numpy/numpyconfig.h"189 """,...

Full Screen

Full Screen

fly_fail_launcher.py

Source:fly_fail_launcher.py Github

copy

Full Screen

1import os, stat2from shutil import copyfile3##########################################################################4# Settings5number_runs = 1006title_string = "Data collection of function frequencies in programs throughout a GP run"7description = """A collection of compact csv data files representing program8counts of all individuals in evolutionary runs """9##########################################################################10# Uncomment the following if you want to print timings in the logs11#example_file += " :print-timings true"12##########################################################################13# Probably don't change these14#output_prefix = "log"15#output_postfix = ".txt"16output_prefix = "run"17output_postfix = ".csv"18zip_start1 = "tar -xvzf /home/thelmuth/Results/clustering-bench/even-squares/baseline-uniform/csv/data"19zip_start2 = "tar -xvzf /home/thelmuth/Results/clustering-bench/for-loop-index/baseline-uniform/csv/data"20zip_start3 = "tar -xvzf /home/thelmuth/Results/clustering-bench/grade/baseline-uniform/csv/data"21zip_start4 = "tar -xvzf /home/thelmuth/Results/clustering-bench/last-indexls-of-zero/baseline-uniform/csv/data"22zip_start5 = "tar -xvzf /home/thelmuth/Results/clustering-bench/median/baseline-uniform/csv/data"23zip_start6 = "tar -xvzf /home/thelmuth/Results/clustering-bench/mirror-image/baseline-uniform/csv/data"24zip_start7 = "tar -xvzf /home/thelmuth/Results/clustering-bench/negative-to-zero/lexicase/csv/data"25zip_start8 = "tar -xvzf /home/thelmuth/Results/clustering-bench/number-io/baseline-uniform/csv/data"26zip_start9 = "tar -xvzf /home/thelmuth/Results/clustering-bench/pig-latin/baseline-uniform/csv/data"27zip_start10 = "tar -xvzf /home/thelmuth/Results/clustering-bench/replace-space-with-newline/lexicase/csv/data"28zip_start11 = "tar -xvzf /home/thelmuth/Results/clustering-bench/scrabble-score/lexicase/csv/data" #*******************29zip_start12 = "tar -xvzf /home/thelmuth/Results/clustering-bench/smallest/baseline-uniform/csv/data"30zip_start13 = "tar -xvzf /home/thelmuth/Results/clustering-bench/small-or-large/baseline-uniform/csv/data"31zip_start14 = "tar -xvzf /home/thelmuth/Results/clustering-bench/string-differences/baseline-uniform/csv/data"32zip_start15 = "tar -xvzf /home/thelmuth/Results/clustering-bench/string-lengths-backwards/lexicase/csv/data"33zip_start16 = "tar -xvzf /home/thelmuth/Results/clustering-bench/sum-of-squares/baseline-uniform/csv/data"34zip_start17 = "tar -xvzf /home/thelmuth/Results/clustering-bench/super-anagrams/baseline-uniform/csv/data"35zip_start18 = "tar -xvzf /home/thelmuth/Results/clustering-bench/syllables/lexicase/csv/data"36zip_start19 = "gunzip -c /home/thelmuth/Results/clustering-bench/vector-average/lexicase/csv/data"37zip_start20 = "tar -xvzf /home/thelmuth/Results/clustering-bench/vectors-summed/baseline-uniform/csv/data"38zip_start21 = "tar -xvzf /home/thelmuth/Results/clustering-bench/wallis-pi/baseline-uniform/csv/data"39zip_start22 = "tar -xvzf /home/thelmuth/Results/clustering-bench/word-stats/baseline-uniform/csv/data"40zip_start23 = "tar -xvzf /home/thelmuth/Results/clustering-bench/x-word-lines/baseline-uniform/csv/data" #*****************************41zip_start24 = "tar -xvzf /home/thelmuth/Results/clustering-bench/checksum/lexicase/csv/data"42zip_start25 = "tar -xvzf /home/thelmuth/Results/clustering-bench/collatz-numbers/baseline-uniform/csv/data"43zip_start26 = "tar -xvzf /home/thelmuth/Results/clustering-bench/compare-string-lengths/baseline-uniform/csv/data"44zip_start27 = "tar -xvzf /home/thelmuth/Results/clustering-bench/count-odds/lexicase/csv/data"45zip_start28 = "tar -xvzf /home/thelmuth/Results/clustering-bench/digits/baseline-uniform/csv/data"46zip_start29 = "tar -xvzf /home/thelmuth/Results/clustering-bench/double-letters/lexicase/csv/data"47zip_end = ".csv.tar.gz -C /state/partition1/"48vecavg_zend = ".csv.gz > /state/partition1/data"49vecavg_zend2 = ".csv"50service_tag = "tom"51##########################################################################52output_directory = "/home/gwoolson/Grace_Research/csvdata"53runfile = "/home/gwoolson/Grace_Research/fly_failedall.py"54# Check to make sure directory doesn't exist; if not, create it55if output_directory[-1] != "/":56 output_directory += "/"57"""if os.path.isdir(output_directory):58 raise RuntimeError("Output directory already exists")"""59copyfile(runfile, output_directory + "checksum/fly_failedall.py")60copyfile(runfile, output_directory + "count-odds/fly_failedall.py")61copyfile(runfile, output_directory + "double-letters/fly_failedall.py")62copyfile(runfile, output_directory + "negative-to-zero/fly_failedall.py")63copyfile(runfile, output_directory + "replace-space-with-newline/fly_failedall.py")64copyfile(runfile, output_directory + "scrabble-score/fly_failedall.py")65copyfile(runfile, output_directory + "string-lengths-backwards/fly_failedall.py")66copyfile(runfile, output_directory + "syllables/fly_failedall.py")67copyfile(runfile, output_directory + "vector-average/fly_failedall.py")68# Make alf file69#alf_file_string = output_directory + "clojush_runs.alf"70alf_file_string = output_directory + "clojush_scraping.alf"71alf_f = open(alf_file_string, "w")72alfcode = """##AlfredToDo 3.073Job -title {%s} -subtasks {74""" % (title_string)75for run in range(0, number_runs):76 intro_command = "echo Starting run; cd %schecksum/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \77 %s%i%s;" % (output_directory, zip_start24, run, zip_end)78 command = "python fly_failedall.py run%i.csv %schecksum/data%i.csv;" % (run, output_directory, run)79 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)80 full_command = intro_command + command + outro_command81 alfcode += """ Task -title {%s - run %i} -cmds {82 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}83 }84""" % (title_string, run, full_command, service_tag)85for run in range(0, number_runs):86 intro_command = "echo Starting run; cd %scount-odds/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \87 %s%i%s;" % (output_directory, zip_start27, run, zip_end)88 command = "python fly_failedall.py run%i.csv %scount-odds/data%i.csv;" % (run, output_directory, run)89 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)90 full_command = intro_command + command + outro_command91 alfcode += """ Task -title {%s - run %i} -cmds {92 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}93 }94""" % (title_string, run, full_command, service_tag)95for run in range(0, number_runs):96 intro_command = "echo Starting run; cd %sdouble-letters/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \97 %s%i%s;" % (output_directory, zip_start29, run, zip_end)98 command = "python fly_failedall.py run%i.csv %sdouble-letters/data%i.csv;" % (run, output_directory, run)99 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)100 full_command = intro_command + command + outro_command101 alfcode += """ Task -title {%s - run %i} -cmds {102 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}103 }104""" % (title_string, run, full_command, service_tag)105for run in range(0, number_runs):106 intro_command = "echo Starting run; cd %snegative-to-zero/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \107 %s%i%s;" % (output_directory, zip_start7, run, zip_end)108 command = "python fly_failedall.py run%i.csv %snegative-to-zero/data%i.csv;" % (run, output_directory, run)109 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)110 full_command = intro_command + command + outro_command111 alfcode += """ Task -title {%s - run %i} -cmds {112 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}113 }114""" % (title_string, run, full_command, service_tag)115for run in range(0, number_runs):116 intro_command = "echo Starting run; cd %sreplace-space-with-newline/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \117 %s%i%s;" % (output_directory, zip_start10, run, zip_end)118 command = "python fly_failedall.py run%i.csv %sreplace-space-with-newline/data%i.csv;" % (run, output_directory, run)119 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)120 full_command = intro_command + command + outro_command121 alfcode += """ Task -title {%s - run %i} -cmds {122 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}123 }124""" % (title_string, run, full_command, service_tag)125for run in range(0, number_runs):126 intro_command = "echo Starting run; cd %sscrabble-score/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \127 %s%i%s;" % (output_directory, zip_start11, run, zip_end)128 command = "python fly_failedall.py run%i.csv %sscrabble-score/data%i.csv;" % (run, output_directory, run)129 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)130 full_command = intro_command + command + outro_command131 alfcode += """ Task -title {%s - run %i} -cmds {132 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}133 }134""" % (title_string, run, full_command, service_tag)135for run in range(0, number_runs):136 intro_command = "echo Starting run; cd %sstring-lengths-backwards/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \137 %s%i%s;" % (output_directory, zip_start15, run, zip_end)138 command = "python fly_failedall.py run%i.csv %sstring-lengths-backwards/data%i.csv;" % (run, output_directory, run)139 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)140 full_command = intro_command + command + outro_command141 alfcode += """ Task -title {%s - run %i} -cmds {142 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}143 }144""" % (title_string, run, full_command, service_tag)145for run in range(0, number_runs):146 intro_command = "echo Starting run; cd %ssyllables/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \147 %s%i%s;" % (output_directory, zip_start18, run, zip_end)148 command = "python fly_failedall.py run%i.csv %ssyllables/data%i.csv;" % (run, output_directory, run)149 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)150 full_command = intro_command + command + outro_command151 alfcode += """ Task -title {%s - run %i} -cmds {152 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}153 }154""" % (title_string, run, full_command, service_tag)155for run in range(0, number_runs):156 intro_command = "echo Starting run; cd %svector-average/; export PYTHONHOME=/usr; export PYTHONPATH=$PYTHONPATH:/opt/sdsc/lib:/opt/sdsc/lib/python2.6/site-packages:/usr/lib64/python26.zip:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload:/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:/usr/lib64/python2.6:/usr/lib64/python2.6/site-packages:/usr/lib/python2.6/site-packages; \157 %s%i%s%i%s;" % (output_directory, zip_start19, run, vecavg_zend, run, vecavg_zend2)158 command = "python fly_failedall.py run%i.csv %svector-average/data%i.csv;" % (run, output_directory, run)159 outro_command = "cd /state/partition1/; rm data%i.csv; echo Finished Run" % (run)160 full_command = intro_command + command + outro_command161 alfcode += """ Task -title {%s - run %i} -cmds {162 RemoteCmd {/bin/sh -c {%s}} -service {%s} -tags {max20}163 }164""" % (title_string, run, full_command, service_tag)165alfcode += "}\n"166alf_f.writelines(alfcode)167alf_f.close()168# Don't touch this Woolson169# Run tractor command170source_string = "source /etc/sysconfig/pixar"171pixar_string = "/opt/pixar/tractor-blade-1.7.2/python/bin/python2.6 /opt/pixar/tractor-blade-1.7.2/tractor-spool.py --engine=fly:8000"...

Full Screen

Full Screen

Pytest Tutorial

Looking for an in-depth tutorial around pytest? LambdaTest covers the detailed pytest tutorial that has everything related to the pytest, from setting up the pytest framework to automation testing. Delve deeper into pytest testing by exploring advanced use cases like parallel testing, pytest fixtures, parameterization, executing multiple test cases from a single file, and more.

Chapters

  1. What is pytest
  2. Pytest installation: Want to start pytest from scratch? See how to install and configure pytest for Python automation testing.
  3. Run first test with pytest framework: Follow this step-by-step tutorial to write and run your first pytest script.
  4. Parallel testing with pytest: A hands-on guide to parallel testing with pytest to improve the scalability of your test automation.
  5. Generate pytest reports: Reports make it easier to understand the results of pytest-based test runs. Learn how to generate pytest reports.
  6. Pytest Parameterized tests: Create and run your pytest scripts while avoiding code duplication and increasing test coverage with parameterization.
  7. Pytest Fixtures: Check out how to implement pytest fixtures for your end-to-end testing needs.
  8. Execute Multiple Test Cases: Explore different scenarios for running multiple test cases in pytest from a single file.
  9. Stop Test Suite after N Test Failures: See how to stop your test suite after n test failures in pytest using the @pytest.mark.incremental decorator and maxfail command-line option.

YouTube

Skim our below pytest tutorial playlist to get started with automation testing using the pytest framework.

https://www.youtube.com/playlist?list=PLZMWkkQEwOPlcGgDmHl8KkXKeLF83XlrP

Run Pytest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful