--- pythoncard-0.8.2.orig/flatfileDatabase.py
+++ pythoncard-0.8.2/flatfileDatabase.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.26 $"
__date__ = "$Date: 2005/01/24 10:28:20 $"
--- pythoncard-0.8.2.orig/configuration.py
+++ pythoncard-0.8.2/configuration.py
@@ -29,7 +29,9 @@
# KEA 2003-06-04
# the config dir was named .pythoncard in release 0.7
# but this caused problems on Windows and the Mac OS X Finder
-PYTHONCARD_CONFIG_DIR = "pythoncard_config"
+# KJP 2004-12-19 Changed for Debian back to .pythoncard to be more consistent
+# PYTHONCARD_CONFIG_DIR = "pythoncard_config"
+PYTHONCARD_CONFIG_DIR = ".pythoncard"
PYTHONCARD_CONFIG_FILE = 'pythoncard_config.txt'
@@ -64,7 +66,9 @@
default_homedir = sys.path[0]
homedir = default_homedir
else:
- default_homedir = os.path.dirname(os.path.abspath(__file__))
+ # KJP 2004-12-19 Changed for Debian to put shared data in a more "correct" place
+ #default_homedir = os.path.dirname(os.path.abspath(__file__))
+ default_homedir = "/usr/share/pythoncard"
#print "default_homedir", default_homedir
for evar in ('HOME', 'USERPROFILE', 'TMP'):
try:
--- pythoncard-0.8.2.orig/STCStyleEditor.py
+++ pythoncard-0.8.2/STCStyleEditor.py
@@ -1323,7 +1323,7 @@
home = os.environ.get('HOME')
if home:
- home = os.path.join(home, 'pythoncard_config')
+ home = os.path.join(home, '.pythoncard')
if not os.path.exists(home):
home = '.'
else:
--- pythoncard-0.8.2.orig/setup.py
+++ pythoncard-0.8.2/setup.py
@@ -55,9 +55,10 @@
# This should all be replaced by calls to os.path.walk, but later
listX=[startDir]
for fyle in os.listdir(startDir):
- file=os.path.join(startDir,fyle)
- if os.path.isdir(file):
- listX.extend(recurseDir(file))
+ if fyle != "debian":
+ file=os.path.join(startDir,fyle)
+ if os.path.isdir(file):
+ listX.extend(recurseDir(file))
return listX
def makeDataDirs(rootDir=APPLICATION_NAME, dataDirs=['.', 'docs','samples', 'tools']):
@@ -94,7 +95,8 @@
platforms = "Mac OS X, Windows, Linux",
packages=[APPLICATION_NAME, APPLICATION_NAME + ".components", APPLICATION_NAME + ".templates", APPLICATION_NAME + ".templates.dialogs"],
package_dir={APPLICATION_NAME: '.'},
- scripts=["install-pythoncard.py"],
+ #Removed for Debian
+ #scripts=["install-pythoncard.py"],
license="BSD",
cmdclass = { 'install_data': smart_install_data},
data_files=makeDataDirs(),
--- pythoncard-0.8.2.orig/gadflyDatabase.py
+++ pythoncard-0.8.2/gadflyDatabase.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
__version__ = "$Revision: 1.11 $"
__date__ = "$Date: 2004/08/12 19:40:39 $"
--- pythoncard-0.8.2.orig/samples/textIndexer/textIndexer.py
+++ pythoncard-0.8.2/samples/textIndexer/textIndexer.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
__version__ = "$Revision: 1.28 $"
__date__ = "$Date: 2005/09/18 03:59:22 $"
--- pythoncard-0.8.2.orig/samples/textRouter/wordwrap.py
+++ pythoncard-0.8.2/samples/textRouter/wordwrap.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
# word_wrap.py
#
# this was originally based on some code I found on the net, but I
--- pythoncard-0.8.2.orig/samples/webgrabber/webchecker.py
+++ pythoncard-0.8.2/samples/webgrabber/webchecker.py
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-
# Original code by Guido van Rossum; extensive changes by Sam Bayer,
# including code to check URL fragments.
--- pythoncard-0.8.2.orig/samples/webgrabber/websucker.py
+++ pythoncard-0.8.2/samples/webgrabber/websucker.py
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-
"""A variant on webchecker that creates a mirror copy of a remote site."""
__version__ = "$Revision: 1.1 $"
--- pythoncard-0.8.2.orig/templates/htmlpreview.py
+++ pythoncard-0.8.2/templates/htmlpreview.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/07/26 15:54:31 $"
--- pythoncard-0.8.2.orig/tests/runTimeTest.py
+++ pythoncard-0.8.2/tests/runTimeTest.py
@@ -64,4 +64,5 @@
Path example: myPanel.myMenu
"""
pass
-
\ No newline at end of file
+
+
--- pythoncard-0.8.2.orig/tests/__init__.py.debdiff
+++ pythoncard-0.8.2/tests/__init__.py.debdiff
@@ -0,0 +1 @@
+# Just keep lintian happy
--- pythoncard-0.8.2.orig/tools/codeEditor/codeEditorR.py
+++ pythoncard-0.8.2/tools/codeEditor/codeEditorR.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
__version__ = "$Revision: 1.14 $"
__date__ = "$Date: 2004/09/16 21:11:33 $"
--- pythoncard-0.8.2.orig/tools/codeEditor/codeEditor.py
+++ pythoncard-0.8.2/tools/codeEditor/codeEditor.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
__version__ = "$Revision: 1.126 $"
__date__ = "$Date: 2005/12/19 23:18:04 $"
--- pythoncard-0.8.2.orig/tools/codeEditor/restEditor.py
+++ pythoncard-0.8.2/tools/codeEditor/restEditor.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
__version__ = "$Revision: 1.7 $"
__date__ = "$Date: 2004/08/27 02:03:25 $"
--- pythoncard-0.8.2.orig/tools/findfiles/findfiles.py
+++ pythoncard-0.8.2/tools/findfiles/findfiles.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
KEA notes to myself
--- pythoncard-0.8.2.orig/tools/oneEditor/restEditor.py
+++ pythoncard-0.8.2/tools/oneEditor/restEditor.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/03 23:58:01 $"
--- pythoncard-0.8.2.orig/tools/oneEditor/tabcodeEditor.py
+++ pythoncard-0.8.2/tools/oneEditor/tabcodeEditor.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
__version__ = "$Revision: 1.15 $"
__date__ = "$Date: 2005/12/29 02:48:25 $"
--- pythoncard-0.8.2.orig/tools/oneEditor/resourceEditor.py
+++ pythoncard-0.8.2/tools/oneEditor/resourceEditor.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/03 23:58:01 $"
--- pythoncard-0.8.2.orig/tools/oneEditor/codePage.py
+++ pythoncard-0.8.2/tools/oneEditor/codePage.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
__version__ = "$Revision: 1.5 $"
__date__ = "$Date: 2005/12/29 02:48:25 $"
--- pythoncard-0.8.2.orig/tools/oneEditor/modules/propertyEditor.py
+++ pythoncard-0.8.2/tools/oneEditor/modules/propertyEditor.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/03 23:58:01 $"
--- pythoncard-0.8.2.orig/tools/oneEditor/templates/templateNoMenus.py
+++ pythoncard-0.8.2/tools/oneEditor/templates/templateNoMenus.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/03 23:58:02 $"
--- pythoncard-0.8.2.orig/tools/oneEditor/templates/templateFullMenus.py
+++ pythoncard-0.8.2/tools/oneEditor/templates/templateFullMenus.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/03 23:58:02 $"
--- pythoncard-0.8.2.orig/tools/oneEditor/templates/template.py
+++ pythoncard-0.8.2/tools/oneEditor/templates/template.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/03 23:58:02 $"
--- pythoncard-0.8.2.orig/tools/resourceEditor/resourceEditor.py
+++ pythoncard-0.8.2/tools/resourceEditor/resourceEditor.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.225 $"
__date__ = "$Date: 2005/12/24 04:45:57 $"
--- pythoncard-0.8.2.orig/tools/resourceEditor/modules/propertyEditor.py
+++ pythoncard-0.8.2/tools/resourceEditor/modules/propertyEditor.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.56 $"
__date__ = "$Date: 2004/10/03 19:21:34 $"
--- pythoncard-0.8.2.orig/tools/resourceEditor/templates/templateNoMenus.py
+++ pythoncard-0.8.2/tools/resourceEditor/templates/templateNoMenus.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.3 $"
__date__ = "$Date: 2004/04/14 02:38:47 $"
--- pythoncard-0.8.2.orig/tools/resourceEditor/templates/templateFullMenus.py
+++ pythoncard-0.8.2/tools/resourceEditor/templates/templateFullMenus.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.10 $"
__date__ = "$Date: 2004/08/12 19:14:23 $"
--- pythoncard-0.8.2.orig/tools/resourceEditor/templates/template.py
+++ pythoncard-0.8.2/tools/resourceEditor/templates/template.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.5 $"
__date__ = "$Date: 2004/04/30 16:26:12 $"
--- pythoncard-0.8.2.orig/tools/textEditor/textEditor.pyw
+++ pythoncard-0.8.2/tools/textEditor/textEditor.pyw
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
__version__ = "$Revision: 1.76 $"
__date__ = "$Date: 2004/09/30 23:59:06 $"