ports/cad/libredwg/files/patch-examples_load__dwg.py
Alexey Dokuchaev 68cea9596c - Update LibreDWG to version 0.12
- Disable Perl bindings for now (there are issues)
- Add missing bits for the proper Python support
- Install examples (and put them where they belong)
2021-01-12 17:15:16 +00:00

20 lines
426 B
Python

--- examples/load_dwg.py.orig 2020-01-16 22:20:43 UTC
+++ examples/load_dwg.py
@@ -1,7 +1,7 @@
#! /usr/bin/python
#import libredwg
-from libredwg import *
+from LibreDWG import *
import sys
@@ -15,7 +15,7 @@ a.object = new_Dwg_Object_Array(1000)
error = dwg_read_file(filename, a)
if (error > 0): # critical errors
- print "Error: ", error
+ print("Error: ", error)
if (error > 127):
exit()