473,505 Members | 13,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>
//
//================================================== ===========================

Thanks,
|>oug
Jun 14 '07 #1
0 1056

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

Similar topics

3
1949
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...
18
3486
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...
3
2059
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...
9
2169
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...
43
16005
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...
1
1346
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
20
2651
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
1
1330
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...
5
1948
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...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.