Skip to content

QuLogic/scribus-plugin-scripter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

scribus-plugin-scripter

Development version of the new Scribus scripter

Install

Clone the scribus-plugin-scripter repository and put – or symlink – its src directory into scribus/plugins// as scripter-dev. Then scribus/plugins/CMakeList.txt file and replace the following line

ADD_SUBDIRECTORY(scripter)

with

ADD_SUBDIRECTORY(scripter-dev)

and, then, rerun cmake with the

-DWANT_SCRIPTER2=1 

option.

Python 3

To compile against Python 3, you will need to edit the CMakeLists.txt in the top-level scribus directory. Change the following line

FIND_PACKAGE(PythonLibs 2 REQUIRED)

to

FIND_PACKAGE(PythonLibs REQUIRED)

or

FIND_PACKAGE(PythonLibs 3 REQUIRED)

(not sure yet, which one is the right one)

and re-run cmake.

Notes

The error happens in:

#23 0x00007fffcb7aadf8 in Pythonize::runScript (this=0x19bae00, 
    scriptPath=0x1a9a158 "/home/ale/docs/bin/scribus/lib/scribus/plugins/scripter/init_scripter.py")

If i reduce the init_scripter.py file to its first lines

# Add path of init_scripter to Python module search path
import sys, os
scripter_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, scripter_path)
print >> sys.stderr, "%s added to PYTHONPATH" % scripter_path

scribus runs correctly.

The next step will to find out which is the offending line.

Scribus Bug Tracker

TODO

About

Development version of the new Scribus scripter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 58.9%
  • Python 21.8%
  • C++ 19.0%
  • CMake 0.3%