This file is indexed.

/usr/share/pyshared/PythonCard/tools/codeEditor/macbuild.py is in python-pythoncard 0.8.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os, sys
import bundlebuilder
import plistlib

# I set this to make adding subfolders into the package easier
# KEA 2004-07-22
# rather than hard-coding the path
# we'll just get the path from this module
##packageroot = "/Users/kevino/oss/eclass/eclass_builder"
packageroot = os.path.abspath(os.path.dirname(__file__))
# for the purposes of building the standalone
# change to the directory the build script is in to simplify imports
os.chdir(packageroot)

# Create the AppBuilder
myapp = bundlebuilder.AppBuilder(verbosity=1)

# Tell it where to find the main script - the one that loads on startup
myapp.mainprogram = os.path.join(packageroot, "codeEditor.py")

# drag&dropped filenames show up in sys.argv
# this doesn't seem to work, need to add additional
# import argvemulator in my code?
#myapp.argv_emulation=1
# make this app self contained
myapp.standalone = 1
myapp.name = "CodeEditor"
myapp.plist = plistlib.Plist.fromFile(os.path.join(packageroot, "Info.plist"))

# includePackages forces certain packages to be added to the app bundle
##myapp.includePackages.append("encodings")
##myapp.includePackages.append("_xmlplus")


# Here you add supporting files and/or folders to your bundle
myapp.resources.append(os.path.join(packageroot, "scriptlets"))
myapp.resources.append(os.path.join(packageroot, "codeEditor.rsrc.py"))
myapp.resources.append(os.path.join(packageroot, "..", "..", "templates", "dialogs", "runOptionsDialog.rsrc.py"))

myapp.resources.append(os.path.join(packageroot, "..", "..", "pythoncard_config.txt"))
myapp.resources.append(os.path.join(packageroot, "..", "..", "stc-styles.cfg"))

# bundlebuilder does not yet have the capability to detect what shared libraries
# are needed by your app - so in this case I am adding the wxPython libs manually
myapp.libs.append("/usr/local/lib/wxPython-2.5.2.8/lib/libwx_macd-2.5.2.dylib")
myapp.libs.append("/usr/local/lib/wxPython-2.5.2.8/lib/libwx_macd-2.5.2.rsrc")
myapp.libs.append("/usr/local/lib/wxPython-2.5.2.8/lib/libwx_macd_stc-2.5.2.dylib")

# Here we build the app!
myapp.setup()
myapp.build()