File: dot-pythoncard.patch

package info (click to toggle)
pythoncard 0.8.2-5
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 9,364 kB
  • ctags: 6,988
  • sloc: python: 56,804; makefile: 60; sh: 22
file content (28 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Use .pythoncard not .pythoncard_config
Author: Kenneth J. Pronovici <pronovic@debian.org>
Last-Update: 2014-08-07

--- pythoncard-0.8.2.orig/STCStyleEditor.py
+++ pythoncard-0.8.2/STCStyleEditor.py
@@ -1323,7 +1323,7 @@ if __name__ == '__main__':
 
     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/configuration.py
+++ pythoncard-0.8.2/configuration.py
@@ -29,7 +29,9 @@ __file__
 # 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'