New to Python, and I have some questions on how to best set up a basic
development environment, particular relating to path issues.
Note: I am not root on my development box (which is some flavor of
BSD)
Where should I develop my own modules so as to refer to them in the
standard way. I.E. I want:
import proj
to work regardless of my current working directory, and to function as
if "proj" were a core or third-party module.
I saw that I can set PYTHONPATH, but that seems sub-prime. I noted
that in installing pysqlite (the local installation of python is 2.4)
that I had it install in a lib under my home dir...should I use that
locale?
What is the command to tell me what directories python is checking in?
While I'm at it, what is the best (read: standard) locale to stick my
test cases? same dir as my project? A subdir?
Thanks in advance 3 1106
Brett Ritter wrote:
New to Python, and I have some questions on how to best set up a basic
development environment, particular relating to path issues.
Note: I am not root on my development box (which is some flavor of
BSD)
Where should I develop my own modules so as to refer to them in the
standard way. I.E. I want:
import proj
to work regardless of my current working directory, and to function as
if "proj" were a core or third-party module.
I saw that I can set PYTHONPATH, but that seems sub-prime. I noted
that in installing pysqlite (the local installation of python is 2.4)
that I had it install in a lib under my home dir...should I use that
locale?
What is the command to tell me what directories python is checking in?
While I'm at it, what is the best (read: standard) locale to stick my
test cases? same dir as my project? A subdir?
Thanks in advance
-- http://mail.python.org/mailman/listinfo/python-list
sys.path is a list that will tell you where python is looking. You can
append to this in your scripts to have python look in a specific
directory for your own modules.
Thanks,
Gary M. Josack
On Jul 26, 2:57*pm, Gary Josack <g...@byoteki.comwrote:
sys.path is a list that will tell you where python is looking. You can
append to this in your scripts to have python look in a specific
directory for your own modules.
I can, but that is almost certainly not the standard way to develop a
module.
I see nothing in sys.path that I have write permissions to.
Is altering my PYTHONPATH the normal way to develop (under the
assumption that later users will install in their conventional python
search path)?
Brett Ritter wrote:
On Jul 26, 2:57 pm, Gary Josack <g...@byoteki.comwrote:
>sys.path is a list that will tell you where python is looking. You can append to this in your scripts to have python look in a specific directory for your own modules.
I can, but that is almost certainly not the standard way to develop a
module.
I see nothing in sys.path that I have write permissions to.
Is altering my PYTHONPATH the normal way to develop (under the
assumption that later users will install in their conventional python
search path)?
-- http://mail.python.org/mailman/listinfo/python-list
If you plan to put your module in a non-standard location then your only
options are adding to sys.path in you program or setting PYTHONPATH. If
this is only for development then you're better off just using
PYTHONPATH with the assumption "users will install in their conventional
python search path". This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John Roth |
last post by:
I'm adding a thread for comments on Gerrit Holl's pre-pep, which
can be found here:
http://tinyurl.com/2578q
Frankly, I like the idea. It's about time that all of the file
and directory stuff...
|
by: carl.manaster |
last post by:
I'm new to this game. I can find my way around C# without any trouble,
and I've used Access, a little bit, in the past. Now a friend wants an
application of mine to read from his Access database....
|
by: jason |
last post by:
we have developed a .NET class library that defines a family of
reusable business objects. the class library is developed in C#, and
works quite well.
one problem, however, is that as more and...
|
by: Vikas Kumar |
last post by:
I have created a windows service
that service downloads updated database after regular intervals
till now i am setting path in app.config where it will download database and
will use it from that...
|
by: Tomasz Jastrzebski |
last post by:
Hi All,
Is there any way I can specify additional dll search path, preferably in
web.config, which would be used by asp.net 2.0 when binding assemblies?
I have many dlls shared among...
|
by: Mike OKC |
last post by:
The Directory.GetFiles method will bring back the file name including the
path. I just want the file name, not the path.
For Each strFile In Directory.GetFiles(strLocalPath)...
|
by: =?Utf-8?B?RGFuaWVs?= |
last post by:
Hi,
I have a WCF service deployed in IIS. How could I get the physical server
path that the service resides, inside the service code?
--
Thanks.
Daniel
|
by: moondaddy |
last post by:
I'm posting code for a user control ( FunctionConnectorSelector) below which
has 3 content controls in it. each content control uses a style from a
resource dictionary merged into the app.xaml...
|
by: lrw0831 |
last post by:
I have an Access database that is used to keep track of issues that the department receives. What we need is a way to add attachments to issues, but only by adding the path name that is a hyperlink...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |