From: rhays at interaccess.com (Bob Hays, Computer Geek)
Date: Thu, 08 Apr 1999 11:30:31 GMT
Subject: Q: How to use long names in python for windows
Message-ID: <370e9080.37656309@news.interaccess.com>
Content-Length: 1321
X-UID: 260                                                  

I'm on Win95, I've downloaded python 1.5.1 and pythonwin (123 I
think).  I've been using pythonwin for development and that works
great.  Now, I want to create a set of batch files to run processes
for me - I'm getting the following error from python:

ValueError: Module name too long

My import statement to the python interpreter is:

import SumHours.MonthOfFiles

This worked fine in pythonwin.  In addition, I made sure to:

set PYTHONPATH=H:\PySources;H:\Python\lib

before starting.

Is there a problem with long file name support in python 1.5.1 on
Windows95?  Is there some startup script I need to execute first to
enable long file names?  I want my code to run properly on UNIX also
(which it does right now), and I hate 8.3 naming conventions.

Thanks and have fun! - Bob

--
I did not ask for the anal probe. -- Passion Fish
Discipline is never an end in itself, only a means to an end. - King Crimson
Whoever flees history will be pursued by history. - Janusz Korczak
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d+(-)@ s+:+ a C++(+++)$ U$ P+$ L@ E+++$ W+++$ N++ !o-- K--? w$ !O M$ V@
PS+ PE !Y+ PGP t !5-- !X !R tv+ b++() DI+ !D- G-- e++ h--- r+++ y+++** 
------END GEEK CODE BLOCK------
rhays at interaccess.com (home)          http://homepage.interaccess.com/~rhays
Bob.Hays at abnamro.com (work)




