Skip to content

Commit

Permalink
Create internal_onload.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CEXT-Dan committed Jun 9, 2024
1 parent b97c57f commit 57e7208
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions PyRxAcSetup/Include/internal_onload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import traceback
from pyrx_imp import Rx, Ge, Gi, Db, Ap, Ed

loadedOnce = False

def OnPyLoadDwg() -> None:
global loadedOnce
if loadedOnce == False:
try:
Ap.Application.loadPythonModule("M:/Dev/Projects/PyRxGit/unitTests/UnitTestRunner.py")
Ap.Application.loadPythonModule("M:/Dev/Projects/PyRxGit/PyRxStubs/utility/genDoc.py")
except Exception as err:
traceback.print_exception(err)
loadedOnce = True

0 comments on commit 57e7208

Please sign in to comment.