PyReloc - BinReloc for python

"Jan Niklas Hasse" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
Hi everyone,

I've just created reloc module for python, that way i can create relocable
python applications. It's just 25 lines of code long, but maybe it can help
some python developers anyway. It should be attached to this E-Mail. (I hope
I sent it to the right address)
Keep up the great work! (or keep on? where's the difference btw) I really
like autopackage, although i'm new to it.

Jan Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
reloc.py (text/x-python, 768 B)
# PyReloc - a library for creating relocatable python applications
# Written by: Jan Niklas Hasse <[email protected]>
# http://autopackage.org/
#
# This source code is public domain. You can relicense this code
# under whatever license you want.
#
# See http://autopackage.org/docs/pyreloc/ for
# more information and how to use this.

import os

EXEDIR = os.path.dirname(os.path.realpath(__file__))
PREFIX = os.path.normpath(os.path.join(EXEDIR, ".."))

BINDIR = os.path.join(PREFIX, "bin")
SBINDIR = os.path.join(PREFIX, "sbin")
DATADIR = os.path.join(PREFIX, "share")
LIBDIR = os.path.join(PREFIX, "lib")
LIBEXECDIR = os.path.join(PREFIX, "libexec")
ETCDIR = os.path.join(PREFIX, "etc")
BINDIR = os.path.join(PREFIX, "bin")

LOCALE = os.path.join(DATADIR, "locale")
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.