How to change default list "path" initially?

18 views
Skip to first unread message

Byeongsu Yu

unread,
Mar 9, 2022, 10:12:24 AM3/9/22
to Macaulay2
My computer is MacBook 2012, with OS 10.15.7 and I use Macaulay2 1.19.1. How can I set the variable path in Macaulay2 initially, without any command after starting?

The problem is here; my default list path is set to

o2 = {./, /Users/byeongsuyu/Library/Application Support/Macaulay2/code/,

     ---------------------------------------------------------------------------

     /Users/byeongsuyu/Library/Application

     ---------------------------------------------------------------------------

     Support/Macaulay2/local/share/Macaulay2/, ../share/Macaulay2/}


However, the second and third elements are useless and prevent me from loading 4ti2 initially. Thus, I always type 


i1: path=drop(path,{1,2})

o1 = {./, ../share/Macaulay2/}

and load 4ti2 after that.


Is there a way to fix the default path list from o3 (in the first) to the o1?


Best,

Byeongsu Yu

Daniel R. Grayson

unread,
Mar 10, 2022, 6:51:40 PM3/10/22
to Macaulay2
I don't see how the second and third elements could prevent you from loading something, unless you have an older version
of the Macaulay2 package resident in one of those directories.   If that's the case, you could remove it with "uninstallPackage"
or "uninstallAllPackages".  That way you can keep those useful entries in the path.

Mahrud Sayrafi

unread,
Mar 12, 2022, 9:00:20 AM3/12/22
to maca...@googlegroups.com
It's also possible that you need to remove the file "/Users/byeongsuyu/Library/Application Support/Macaulay2/init-FourTiTwo.m2", which is unfortunately not cleaned out by uninstallPackage.

Mahrud

--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/macaulay2/6e59a6eb-c370-4bf9-956b-a8b6e0635f30n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages