mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
- Disable Perl bindings for now (there are issues) - Add missing bits for the proper Python support - Install examples (and put them where they belong)
20 lines
426 B
Python
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()
|
|
|