home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!afterlife!ricampb
- From: ricampb@afterlife.ncsc.mil (Robert Campbell)
- Newsgroups: sci.math.symbolic,uiuc.mathematica
- Subject: Re: Mma Pathnames under Windows
- Message-ID: <1992Aug26.103708.26823@afterlife.ncsc.mil>
- Date: 26 Aug 92 10:37:08 GMT
- References: <92234.172311U09207@uicvm.uic.edu> <1992Aug24.070159.13875@ucc.su.OZ.AU>
- Organization: The Great Beyond
- Lines: 34
-
- In article <1992Aug24.070159.13875@ucc.su.OZ.AU> colinr@extro.ucc.su.OZ.AU (Colin Rose) writes:
- >Under Windows, file names are limited to 8 characters. As a
- >result, when a package contains an instruction to load another
- >package whose file name exceeds 8 characters, Mma does not find
- >it --- at least on our setup -- and returns a can't open meassage.
- >Thus far, I have solved this problem by doctoring the
- >names of loaded packages to match their file names under Windows.
- >For instance, if I change the above instruction to:
- >
- > BeginPackage["Statisti`NormalDi`",
- > "Statisti`Descript`",
- > "Statisti`Common`Distribu`",
- > "Statisti`InverseS`"]
- >
- > I have no problem loading the normal distribution package
- >under Windows.
-
- The problem that you cite is real. It is caused by the fact that the
- translation done by the ContextToFilename function is, at best, a
- crude one - truncating names to 8 characters on DOS based systems.
- Version 2.1 corrected this for the packages in the standard distribution
- by letting this function recognize each of the standard packages and
- make the proper translation to a path. For any package that you install
- beyond that, though, you will have to instruct ContextToFilename how
- to translate the path. Thus, if you install the package with context
- Algebra`PermutationGroups` as the file PACKAGES\ALGEBRA\PERMGPS.M you
- will have to execute the rule:
- ContextToFilename["Algebra`PermutationGroups`"] = \
- "PACKAGES\ALGEBRA\PERMGPS.M"
- Note that the translation done by ContextToFilename is only used by
- the Needs and BeginPackage commands, not the Get (ie <<filename)
- command.
-
- - Robert Campbell -
-