File: 11-fix-example-hconsole-import.patch

package info (click to toggle)
hatari 2.5.0%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 13,324 kB
  • sloc: ansic: 164,630; cpp: 8,685; python: 6,251; objc: 1,899; asm: 1,742; sh: 1,668; javascript: 146; makefile: 86; xml: 32
file content (22 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix hconsole example.py by adding hconsole to sys.path
Author: Teemu Hukkanen <tjhukkan@iki.fi>
Forwarded: not-needed

Index: pkg-hatari/tools/hconsole/example.py
===================================================================
--- pkg-hatari.orig/tools/hconsole/example.py
+++ pkg-hatari/tools/hconsole/example.py
@@ -7,7 +7,12 @@
 # Or if Hatari and hconsole are installed to the system:
 #   /usr/share/hatari/hconsole/example.py --tos etos1024k.img
 
-import hconsole, os, sys
+import os
+import sys
+
+sys.path.append("/usr/share/hatari/hconsole")
+
+import hconsole
 
 # path for this script
 path = os.path.dirname(sys.argv[0])