Permalink
Browse files

start of main wrapper script around all classes

  • Loading branch information...
1 parent 765cc3b commit 5c35d5efa1945c0c8e7d1ef6ae42b034c946f1db @poundifdef committed May 13, 2012
Showing with 14 additions and 2 deletions.
  1. +11 −0 resume_to_txt.py
  2. +1 −1 resumebabel/converters/resume_to_txt.py
  3. +2 −1 run.sh
View
@@ -0,0 +1,11 @@
+import sys
+import json
+
+from resumebabel.converters.resume_to_txt import ResumeText
+
+if __name__ == '__main__':
+ fd = open(sys.argv[1])
+ resume = json.load(fd)
+
+ r = ResumeText(resume)
+ r.create_output("out.txt")
@@ -74,7 +74,7 @@ def create_output(self, outputFile = ""):
#print self.generatedResume
def postprocess_resume(self):
- self.generatedResume = wrap(self.generatedResume,resume['column_width'],resume['bullet'])
+ self.generatedResume = wrap(self.generatedResume,self.resume['column_width'],self.resume['bullet'])
if __name__ == '__main__':
fd = open(sys.argv[1])
View
@@ -1 +1,2 @@
-PYTHONPATH=/home/jay/github/resumebabel python resumebabel/converters/resume_to_txt.py resume.json
+#PYTHONPATH=/home/jay/github/resumebabel python resumebabel/converters/resume_to_txt.py resume.json
+PYTHONPATH=/home/jay/github/resumebabel python resume_to_txt.py resume.json

0 comments on commit 5c35d5e

Please sign in to comment.