title: Adding startup script (init.py and menu.py) to Nuke path with sitecustomize
body: <p>I'm trying to point to a startup script location in Nuke instead of using the default one (<code>%USERPROFILE%/.nuke/*.py</code>). From <a href="https://learn.foundry.com/nuke/developers/63/pythondevguide/startup.html" rel="nofollow noreferrer">this page</a>, either commands with the <code>nuke</code> module, or adding to the path are said to be valid options.</p>
  
  <p>In my <code>sitecustomize.py</code>, if I run <code>import nuke</code>, I get the message <code>Error: global root initialised more than once</code>, and Nuke will not launch. I believe it could be something to do with the inbuilt <code>_pathsetup.py</code>, which looks like it runs during startup to correctly set the environment for the moudle.</p>
  
  <p>I also tried adding to the <code>NUKE_PATH</code> environment variable, but Nuke just overwrites that before it's properly launched.</p>
  
  <p>Does anyone have any idea how I could add a folder containing <code>init.py</code> and <code>menu.py</code> to the startup path, without specifially editing anything in documents or program files?</p>
  
  <p>I'm currently writing <code>nuke.pluginAppendPath</code> to <code>%USERPROFILE%/.nuke/init.py</code> each time Nuke is launched, but obviously that's not very pythonic.</p>