Skip to content

Commit

Permalink
Made Python 1.5 friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Sep 1, 1998
1 parent 81c2afe commit 15a95d5
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,35 @@
This wrapper allows the (now many) document template modules to be
segregated in a separate package.
$Id: __init__.py,v 1.5 1997/11/14 15:18:53 jim Exp $'''
__version__='$Revision: 1.5 $'[11:-2]
$Id: __init__.py,v 1.6 1998/09/01 22:16:35 jim Exp $'''
__version__='$Revision: 1.6 $'[11:-2]

import sys, string

__.__path__.append(
"%s/bin-%s/%s" % (__.__path__[0], string.split(sys.version)[0], sys.platform)
)

import DocumentTemplate
__.String=DocumentTemplate.String
__.File=DocumentTemplate.File
__.HTML=DocumentTemplate.HTML
__.HTMLDefault=DocumentTemplate.HTMLDefault
__.HTMLFile=DocumentTemplate.HTMLFile
__.html_quote=DocumentTemplate.html_quote

String=DocumentTemplate.String
File=DocumentTemplate.File
HTML=DocumentTemplate.HTML
HTMLDefault=DocumentTemplate.HTMLDefault
HTMLFile=DocumentTemplate.HTMLFile
html_quote=DocumentTemplate.html_quote

try:
__.String=DocumentTemplate.String
__.File=DocumentTemplate.File
__.HTML=DocumentTemplate.HTML
__.HTMLDefault=DocumentTemplate.HTMLDefault
__.HTMLFile=DocumentTemplate.HTMLFile
__.html_quote=DocumentTemplate.html_quote
except: pass

##############################################################################
#
# $Log: __init__.py,v $
# Revision 1.6 1998/09/01 22:16:35 jim
# Made Python 1.5 friendly.
#
# Revision 1.5 1997/11/14 15:18:53 jim
# Took stupid uname out.
#
Expand Down

0 comments on commit 15a95d5

Please sign in to comment.