File: codeEditor

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 (12 lines) | stat: -rw-r--r-- 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# A simple command-line wrapper for PythonCard's codeEditor tool.
# Copyright (c) Kenneth J. Pronovici <pronovic@debian.org>; use as you wish.

dir=`python -c 'import distutils.sysconfig as s; print(s.get_python_lib())'`/PythonCard/tools/codeEditor

if [ -d "$dir" ]; then
   exec /usr/bin/python "$dir/codeEditor.py" "$@"
else
   echo "Unable to find PythonCard installation."
fi