472,958 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Proper licensing and copyright attribution for extracted Pythoncode

Hi. I extracted getpath.c out of Python and modified it to make a
generally useful facility for C and C++ programming. These comments
are at the top of my .c file, and I would like to know if they pass
muster for meeting licensing, copyright, and aesthetics requirements:

// -*- Mode: C; fill-column: 79 -*-

//================================================== ===========================
// Description:
// pathToExecutable.c is a module that allows a Unix program to find the
// location of its executable. This capability is extremely useful for
// writing programs that don't have to recompiled in order to be relocated
// within the filesystem. Any auxiliary files (dynamically loaded
// libraries, help files, configuration files, etc.) can just be placed in
// the same directory as the executable, and the function
// pathToExecutable() can be used by the program at runtime to locate its
// executable file and from there the program can locate any auxiliary
// files it needs in order to operate.
// pathToExecutable() is smart enough to follow a symlink (or even a chain
// of symlinks) in order to find the true location of the executable. In
// this manner, for instance, you might install all of the files used by a
// program (let's say it's called "my-program"), including the executable,
// into the directory /usr/local/lib/my-program, and then put a symlink
// into /usr/local/bin that points to the executable
// /usr/local/lib/my-program/my-program. Initially pathToExecutable()
// will identify /usr/local/bin/my-program as the executable, but it will
// then notice that this "file" is really a symbolic link.
// pathToExecutable() will then follow the symbolic link and return
// "/usr/local/lib/my-program/my-pogram" instead.
// Before a program can call pathToExecutable(), setArgv() must be called
// (canonically in main()) so that pathToExecutable() can fetch the value
// of argv[0] and use it to help figure out where the executable is
// located.
// Copyright and licensing information:
// This software is a heavily modified version of getpath.c from the
// Python 2.5.1 release. Both this software and the original software
// from which it is derived are freely distributable under the terms of
// the permissive freeware license, Python Software Foundation License
// Version 2. You can read more about this license here:
// http://www.python.org/psf/license
// The original software from which this software is derived carries the
// following copyright:
// Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Python
// Software Foundation.
// The modifications to the original software, which are contained herein,
// are
// Copyright (c) 2007 Douglas Alan <doug AT alum.mit.edu>
//================================================== ===========================

Jun 14 '07 #1
0 1038

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Google Mike | last post by:
Okay. Let's say that at night from home I just wrote a web-based work order management system that uses LAPP (Linux, Apache, PostgreSQL, and PHP). Now I want to: 1. Copyright it under a...
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections...
by: Fabio | last post by:
Hi all, I'm about to write an application, and I'd like to use PyQt, but before choosing this toolkit I would like to clarify some particular licensing issues; if some user has already touched...
by: Daniel Keep | last post by:
I'm currently working on a Python program, and was wondering if it's possible to license the program, some associated tools, and a few other libraries I've written under the Python license. I...
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
by: Job Lot | last post by:
I am planning to market an application I have developed using VB.NET and MSDE 2000. Could anyone please educate me on licensing and copyright issues? Thanks
by: Jacob Friis Larsen | last post by:
I have used DHTMLcentral.com's Coolmenus, but I'd like to find a more simple one. Any advice? Thanks, Jacob
by: robert d via AccessMonster.com | last post by:
I'm a fledgling developer and am just starting to get my app out to specific clients. I have been asked to bid on a project because my app already does over 90% of what the client wants. My...
by: richard.wm.jones | last post by:
I'm trying to track down the original authors of cdecl. cdecl was dropped from Fedora Core a few years ago because of licensing concerns. The original postings to comp.sources.unix (vols 6 & 14...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.