Skip to content

Instantly share code, notes, and snippets.

@gsrodgers
Created September 13, 2016 08:15
Show Gist options
  • Save gsrodgers/c4f459bf64356a67cf29ed77f66dcf1a to your computer and use it in GitHub Desktop.
Save gsrodgers/c4f459bf64356a67cf29ed77f66dcf1a to your computer and use it in GitHub Desktop.
# Set folder names
input_folder = r'output_csvs_from_mPEnergy'
output_folder = r'reformatted_tpnhhd_data'
archive_folder = r'archive'
# find directory of python script
cPath = os.path.dirname(os.path.abspath(__file__))
# go up one level
folder = os.path.dirname(cPath)
# set full location of input folder
inPath = folder + os.sep + input_folder
# set full location of output folder
outPath = os.path.dirname(inPath) + os.sep + output_folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment