Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
tavis_rudd committed Aug 9, 2002
1 parent eb98a0d commit 7393a78
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/ImportHooks.py
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# $Id: ImportHooks.py,v 1.17 2002/08/09 02:39:33 tavis_rudd Exp $ # $Id: ImportHooks.py,v 1.18 2002/08/09 03:07:00 tavis_rudd Exp $


"""Provides some import hooks to allow Cheetah's .tmpl files to be imported """Provides some import hooks to allow Cheetah's .tmpl files to be imported
directly like Python .py modules. directly like Python .py modules.
Expand All @@ -9,12 +9,12 @@
Author: Tavis Rudd <tavis@damnsimple.com> Author: Tavis Rudd <tavis@damnsimple.com>
License: This software is released for unlimited distribution under the License: This software is released for unlimited distribution under the
terms of the Python license. terms of the Python license.
Version: $Revision: 1.17 $ Version: $Revision: 1.18 $
Start Date: 2001/03/30 Start Date: 2001/03/30
Last Revision Date: $Date: 2002/08/09 02:39:33 $ Last Revision Date: $Date: 2002/08/09 03:07:00 $
""" """
__author__ = "Tavis Rudd <tavis@damnsimple.com>" __author__ = "Tavis Rudd <tavis@damnsimple.com>"
__revision__ = "$Revision: 1.17 $"[11:-2] __revision__ = "$Revision: 1.18 $"[11:-2]


################################################## ##################################################
## DEPENDENCIES ## DEPENDENCIES
Expand Down Expand Up @@ -105,9 +105,11 @@ def getmod(self, name,
__file__ = tmplPath __file__ = tmplPath
co = compile(code+'\n', __file__, 'exec') co = compile(code+'\n', __file__, 'exec')



mod = newmod(name) mod = newmod(name)
mod.__file__ = co.co_filename mod.__file__ = co.co_filename
if _cacheDir:
mod.__orig_file__ = tmplPath # @@TR: this is used in the WebKit
# filemonitoring code
mod.__co__ = co mod.__co__ = co
self._releaseLock() self._releaseLock()
return mod return mod
Expand Down

0 comments on commit 7393a78

Please sign in to comment.