Skip to content

[Bug]: Extension Paths with System Variables Fail to be Read by the new Loader #3144

@tay0thman

Description

@tay0thman

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

under the new C# Loader: locating user scripts by referencing windows environment variables like %USERPROFILE% or %APPDATA% fails to load, this is exclusive to the new Loader. disabling the loader will solve the issue.

⌨ Error/Debug Message

Cannot Find C:\ProgramFiles\PyRevit-Master\%USERPROFILE%

♻️ To Reproduce

  1. OPEN pyrevit-config.ini
  2. add a user extension to the list that contains an environment variable such as %USER PROFILE%
  3. reload
  4. the extensions in this location won't be loaded

⏲️ Expected behavior

this behavior is resolved by reverting to the older / legacy loader.

🖥️ Hardware and Software Setup (please complete the following information)

Revit 2024-2026
PyRevit 6.1.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions