Index: /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js
===================================================================
--- /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js (revision 7789)
+++ /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js (working copy)
@@ -26,7 +26,7 @@
 function runCommand(theCmd){
  cmd  = 'cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}"; '
     TextMate.log(cmd);
- cmd += '/Users/bmiller/Projects/TM/Bundles/Latex.tmbundle/Support/bin/texMate.py ' + theCmd;
+ cmd += '"${TM_BUNDLE_SUPPORT}/bin/texMate.py" ' + theCmd;
  TextMate.log(cmd);
  TextMate.isBusy = true;
  myCommand = TextMate.system(cmd, function(task) { TextMate.isBusy = false; } );
Index: /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texMate.py
===================================================================
--- /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texMate.py  (revision 7789)
+++ /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texMate.py  (working copy)
@@ -298,7 +298,7 @@
     # decent in Python without requiring the PyObjC module.  I would prefer to use popen but
     # plutil apparently tries to do something to /dev/stdout which causes an error message to be appended
     # to the output.
-    os.system("plutil -convert xml1 /Users/bmiller/Library/Preferences/com.macromates.textmate.plist -o /tmp/tmltxprefs.plist")
+    os.system("plutil -convert xml1 ~/Library/Preferences/com.macromates.textmate.plist -o /tmp/tmltxprefs.plist")
     pl = open('/tmp/tmltxprefs.plist')
     plDict = plistlib.readPlist(pl)
     pl.close()
@@ -472,9 +472,10 @@
             eCode = 200
 
     print '</pre></div>'
+    js = os.getenv('TM_BUNDLE_SUPPORT') + '/Support/bin/texlib.js'
     print """
-     <script src="file:///Library/Application%20Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js"    type="text/javascript" charset="utf-8"></script>
-     """     
+     <script src="file://%s" type="text/javascript" charset="utf-8"></script>
+     """ % js
     #
     # Add Buttons here
     #