discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Library paths

J
jon
Sat, Jan 27, 2024 1:02 PM

One quirk of Windows 11 is that it starts out with OneDrive active, and
even if you quit out of OneDrive, some paths that were
"C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop".
Recovering from this ridiculous situation is awkward, complex, and often
unsuccessful.

I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using
the wrong paths.

Is there any easy way to adjust the paths used, like editing a
configuration file?

Thanks!

Jon

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

One quirk of Windows 11 is that it starts out with OneDrive active, and even if you quit out of OneDrive, some paths that were "C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop". Recovering from this ridiculous situation is awkward, complex, and often unsuccessful. I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using the wrong paths. Is there any easy way to adjust the paths used, like editing a configuration file? Thanks! Jon -- This email has been checked for viruses by AVG antivirus software. www.avg.com
NH
nop head
Sat, Jan 27, 2024 2:09 PM

There is an environment variable to set the library paths. Not at a
computer ATM but something like OPENSCADLIBS.

On Sat, 27 Jan 2024, 13:03 jon via Discuss, discuss@lists.openscad.org
wrote:

One quirk of Windows 11 is that it starts out with OneDrive active, and
even if you quit out of OneDrive, some paths that were
"C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop".
Recovering from this ridiculous situation is awkward, complex, and often
unsuccessful.

I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using
the wrong paths.

Is there any easy way to adjust the paths used, like editing a
configuration file?

Thanks!

Jon

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

There is an environment variable to set the library paths. Not at a computer ATM but something like OPENSCADLIBS. On Sat, 27 Jan 2024, 13:03 jon via Discuss, <discuss@lists.openscad.org> wrote: > One quirk of Windows 11 is that it starts out with OneDrive active, and > even if you quit out of OneDrive, some paths that were > "C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop". > Recovering from this ridiculous situation is awkward, complex, and often > unsuccessful. > > I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using > the wrong paths. > > Is there any easy way to adjust the paths used, like editing a > configuration file? > > Thanks! > > Jon > > > -- > This email has been checked for viruses by AVG antivirus software. > www.avg.com > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
J
jon
Sat, Jan 27, 2024 2:24 PM

Thanks!  I looked, and there are no environment variables that look
likely, either by name or content.

On 1/27/2024 9:09 AM, nop head via Discuss wrote:

There is an environment variable to set the library paths. Not at a
computer ATM but something like OPENSCADLIBS.

On Sat, 27 Jan 2024, 13:03 jon via Discuss,
discuss@lists.openscad.org wrote:

 One quirk of Windows 11 is that it starts out with OneDrive
 active, and
 even if you quit out of OneDrive, some paths that were
 "C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop".
 Recovering from this ridiculous situation is awkward, complex, and
 often
 unsuccessful.

 I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using
 the wrong paths.

 Is there any easy way to adjust the paths used, like editing a
 configuration file?

 Thanks!

 Jon


 -- 
 This email has been checked for viruses by AVG antivirus software.
 www.avg.com <http://www.avg.com>
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

Thanks!  I looked, and there are no environment variables that look likely, either by name or content. On 1/27/2024 9:09 AM, nop head via Discuss wrote: > There is an environment variable to set the library paths. Not at a > computer ATM but something like OPENSCADLIBS. > > > > On Sat, 27 Jan 2024, 13:03 jon via Discuss, > <discuss@lists.openscad.org> wrote: > > One quirk of Windows 11 is that it starts out with OneDrive > active, and > even if you quit out of OneDrive, some paths that were > "C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop". > Recovering from this ridiculous situation is awkward, complex, and > often > unsuccessful. > > I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using > the wrong paths. > > Is there any easy way to adjust the paths used, like editing a > configuration file? > > Thanks! > > Jon > > > -- > This email has been checked for viruses by AVG antivirus software. > www.avg.com <http://www.avg.com> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
LM
Leonard Martin Struttmann
Sat, Jan 27, 2024 2:35 PM

Per: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries

The User-Defined library path can be created using the OPENSCADPATH
Environment
Variable to point to the library(s).

On Sat, Jan 27, 2024 at 8:24 AM jon via Discuss discuss@lists.openscad.org
wrote:

Thanks!  I looked, and there are no environment variables that look
likely, either by name or content.

On 1/27/2024 9:09 AM, nop head via Discuss wrote:

There is an environment variable to set the library paths. Not at a
computer ATM but something like OPENSCADLIBS.

On Sat, 27 Jan 2024, 13:03 jon via Discuss, discuss@lists.openscad.org
wrote:

One quirk of Windows 11 is that it starts out with OneDrive active, and
even if you quit out of OneDrive, some paths that were
"C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop".
Recovering from this ridiculous situation is awkward, complex, and often
unsuccessful.

I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using
the wrong paths.

Is there any easy way to adjust the paths used, like editing a
configuration file?

Thanks!

Jon

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_-277025261160594501_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Per: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries The *User-Defined* library path can be created using the OPENSCADPATH Environment Variable to point to the library(s). On Sat, Jan 27, 2024 at 8:24 AM jon via Discuss <discuss@lists.openscad.org> wrote: > Thanks! I looked, and there are no environment variables that look > likely, either by name or content. > > > On 1/27/2024 9:09 AM, nop head via Discuss wrote: > > There is an environment variable to set the library paths. Not at a > computer ATM but something like OPENSCADLIBS. > > > > On Sat, 27 Jan 2024, 13:03 jon via Discuss, <discuss@lists.openscad.org> > wrote: > >> One quirk of Windows 11 is that it starts out with OneDrive active, and >> even if you quit out of OneDrive, some paths that were >> "C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop". >> Recovering from this ridiculous situation is awkward, complex, and often >> unsuccessful. >> >> I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using >> the wrong paths. >> >> Is there any easy way to adjust the paths used, like editing a >> configuration file? >> >> Thanks! >> >> Jon >> >> >> -- >> This email has been checked for viruses by AVG antivirus software. >> www.avg.com >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_-277025261160594501_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
J
jon
Sat, Jan 27, 2024 2:51 PM

Thank you!  What threw me off was that this did not exist already.  All set!

Jon

On 1/27/2024 9:35 AM, Leonard Martin Struttmann via Discuss wrote:

Per: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries

The /User-Defined/ library path can be created using the
OPENSCADPATH Environment Variable to point to the library(s).

On Sat, Jan 27, 2024 at 8:24 AM jon via Discuss
discuss@lists.openscad.org wrote:

 Thanks!  I looked, and there are no environment variables that
 look likely, either by name or content.


 On 1/27/2024 9:09 AM, nop head via Discuss wrote:
 There is an environment variable to set the library paths. Not at
 a computer ATM but something like OPENSCADLIBS.



 On Sat, 27 Jan 2024, 13:03 jon via Discuss,
 <discuss@lists.openscad.org> wrote:

     One quirk of Windows 11 is that it starts out with OneDrive
     active, and
     even if you quit out of OneDrive, some paths that were
     "C:\users\jon\desktop" remain as
     "C:\users\jon\onedrive\desktop".
     Recovering from this ridiculous situation is awkward,
     complex, and often
     unsuccessful.

     I installed OpenSCAD before I disabled OneDrive, so OpenSCAD
     is using
     the wrong paths.

     Is there any easy way to adjust the paths used, like editing a
     configuration file?

     Thanks!

     Jon


     -- 
     This email has been checked for viruses by AVG antivirus
     software.
     www.avg.com <http://www.avg.com>
     _______________________________________________
     OpenSCAD mailing list
     To unsubscribe send an email to discuss-leave@lists.openscad.org


 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email todiscuss-leave@lists.openscad.org
 <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
 	Virus-free.www.avg.com
 <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>


 <#m_-277025261160594501_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Thank you!  What threw me off was that this did not exist already.  All set! Jon On 1/27/2024 9:35 AM, Leonard Martin Struttmann via Discuss wrote: > Per: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries > > The /User-Defined/ library path can be created using the > OPENSCADPATH Environment Variable to point to the library(s). > > On Sat, Jan 27, 2024 at 8:24 AM jon via Discuss > <discuss@lists.openscad.org> wrote: > > Thanks!  I looked, and there are no environment variables that > look likely, either by name or content. > > > On 1/27/2024 9:09 AM, nop head via Discuss wrote: >> There is an environment variable to set the library paths. Not at >> a computer ATM but something like OPENSCADLIBS. >> >> >> >> On Sat, 27 Jan 2024, 13:03 jon via Discuss, >> <discuss@lists.openscad.org> wrote: >> >> One quirk of Windows 11 is that it starts out with OneDrive >> active, and >> even if you quit out of OneDrive, some paths that were >> "C:\users\jon\desktop" remain as >> "C:\users\jon\onedrive\desktop". >> Recovering from this ridiculous situation is awkward, >> complex, and often >> unsuccessful. >> >> I installed OpenSCAD before I disabled OneDrive, so OpenSCAD >> is using >> the wrong paths. >> >> Is there any easy way to adjust the paths used, like editing a >> configuration file? >> >> Thanks! >> >> Jon >> >> >> -- >> This email has been checked for viruses by AVG antivirus >> software. >> www.avg.com <http://www.avg.com> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > > > <#m_-277025261160594501_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com
JB
Jordan Brown
Sat, Jan 27, 2024 10:05 PM

On 1/27/2024 5:02 AM, jon via Discuss wrote:

One quirk of Windows 11 is that it starts out with OneDrive active,
and even if you quit out of OneDrive, some paths that were
"C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop".
Recovering from this ridiculous situation is awkward, complex, and
often unsuccessful.

I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using
the wrong paths.

Is there any easy way to adjust the paths used, like editing a
configuration file?

Others have pointed at the OPENSCADPATH environment variable, and that
will work, sort of, but is hiding the question rather than answering it.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries

OpenSCAD looks in four places for libraries:

  • The same directory as the file doing the "include" or "use".
  • The directories listed in OPENSCADPATH.
  • A path under the OS dependent user home directory.
  • The "libraries" directory in the directory where OpenSCAD is installed.

You're talking about the third of those.  OPENSCADPATH specifies places
to look before that, so quite possibly does get you what you need, but
isn't really the true answer. By way of analogy to Linux or MacOS,using
OPENSCADPATH for this on Windows is roughly equivalent to using
OPENSCADPATH to compensate for the fact that your $HOME is set
incorrectly.  It's just more obvious how $HOME is set.

On Windows, the base directory is the CSIDL_PERSONAL directory. 
Unfortunately, I don't find any documentation saying how CSIDL_PERSONAL
gets turned into an actual file system path.  (Quite possibly it's
version-specific.)

On my Windows 11 system, it looks like maybe it's stored in the
registry at

Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders

in the "Personal" key.

But also:  OneDrive has a setting under "Sync and backup" for "Back up
important PC folders to OneDrive".  I believe that's the setting that
makes your Documents directory (and others) point at OneDrive.  I would
try firing OneDrive up, going to that setting, and turning all of the
directories off, then seeing if that changes the paths you see in
OpenSCAD's "Help / Library Info".  (Start a new OpenSCAD; I wouldn't be
surprised if it picks up the value during startup.)

On 1/27/2024 5:02 AM, jon via Discuss wrote: > One quirk of Windows 11 is that it starts out with OneDrive active, > and even if you quit out of OneDrive, some paths that were > "C:\users\jon\desktop" remain as "C:\users\jon\onedrive\desktop". > Recovering from this ridiculous situation is awkward, complex, and > often unsuccessful. > > I installed OpenSCAD before I disabled OneDrive, so OpenSCAD is using > the wrong paths. > > Is there any easy way to adjust the paths used, like editing a > configuration file? Others have pointed at the OPENSCADPATH environment variable, and that will work, sort of, but is hiding the question rather than answering it. https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries OpenSCAD looks in four places for libraries: * The same directory as the file doing the "include" or "use". * The directories listed in OPENSCADPATH. * A path under the OS dependent user home directory. * The "libraries" directory in the directory where OpenSCAD is installed. You're talking about the third of those.  OPENSCADPATH specifies places to look *before* that, so quite possibly does get you what you need, but isn't really the true answer. By way of analogy to Linux or MacOS,using OPENSCADPATH for this on Windows is roughly equivalent to using OPENSCADPATH to compensate for the fact that your $HOME is set incorrectly.  It's just more obvious how $HOME is set. On Windows, the base directory is the CSIDL_PERSONAL directory.  Unfortunately, I don't find any documentation saying how CSIDL_PERSONAL gets turned into an actual file system path.  (Quite possibly it's version-specific.) On my Windows 11 system, it looks like *maybe* it's stored in the registry at Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders in the "Personal" key. But also:  OneDrive has a setting under "Sync and backup" for "Back up important PC folders to OneDrive".  I believe that's the setting that makes your Documents directory (and others) point at OneDrive.  I would try firing OneDrive up, going to that setting, and turning all of the directories off, then seeing if that changes the paths you see in OpenSCAD's "Help / Library Info".  (Start a new OpenSCAD; I wouldn't be surprised if it picks up the value during startup.)
J
jon
Sat, Jan 27, 2024 10:21 PM

"But also:  OneDrive has a setting under "Sync and backup" for "Back up
important PC folders to OneDrive".  I believe that's the setting that
makes your Documents directory (and others) point at OneDrive.  I would
try firing OneDrive up, going to that setting, and turning all of the
directories off, then seeing if that changes the paths you see in
OpenSCAD's "Help / Library Info". (Start a new OpenSCAD; I wouldn't be
surprised if it picks up the value during startup.)"

I tried to do something like this, but I have turned OneDrive off and on
enough that it no longer seems to want to work at all.  I'm not using a
Microsoft account, which adds another wrinkle.

I think the environment variable is doing what I need.  Thank you!

Jon

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

"But also:  OneDrive has a setting under "Sync and backup" for "Back up important PC folders to OneDrive".  I believe that's the setting that makes your Documents directory (and others) point at OneDrive.  I would try firing OneDrive up, going to that setting, and turning all of the directories off, then seeing if that changes the paths you see in OpenSCAD's "Help / Library Info". (Start a new OpenSCAD; I wouldn't be surprised if it picks up the value during startup.)" I tried to do something like this, but I have turned OneDrive off and on enough that it no longer seems to want to work at all.  I'm not using a Microsoft account, which adds another wrinkle. I think the environment variable is doing what I need.  Thank you! Jon -- This email has been checked for viruses by AVG antivirus software. www.avg.com