Created
April 10, 2012 14:11
-
-
Save soeirosantos/2351652 to your computer and use it in GitHub Desktop.
util for copy a lot of resources from diferent places and put them in a single place
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
this is util for copy a lot of resources from diferent places and put them in a single place | |
In my case I use this for to copy dozens of jar files from my m2 local repository | |
''' | |
import shutil | |
''' | |
inform in a txt file all paths that you would like to copy, line by line | |
''' | |
file_with_jars_path = open('resources_paths.txt', 'r') | |
for jar_path in file_with_jars_path: | |
shutil.copy2(jar_path.replace("\n",""), "/path/where/put") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment