Skip to content

Commit

Permalink
FF: plugins syntax error after merge of release
Browse files Browse the repository at this point in the history
  • Loading branch information
peircej committed Jul 5, 2024
1 parent 3910a58 commit f71138a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions psychopy/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@
USER_PACKAGES_PATH = None

# check if we're in a virtual environment or not
inVM = hasattr(sys, 'real_prefix') or sys.prefix != sys.base_prefix
inVenv = hasattr(sys, 'real_prefix') or sys.prefix != sys.base_prefix

# add the plugins folder to the path
# if USER_PACKAGES_PATH not in sys.path:
# sys.path.insert(0, USER_PACKAGES_PATH) # add to path
if not site.ENABLE_USER_SITE or USER_PACKAGES_PATH not in sys.path:
site.addsitedir(USER_PACKAGES_PATH)
# add the plugins folder to the path
if not inVenv and USER_PACKAGES_PATH not in sys.path:
sys.path.insert(0, USER_PACKAGES_PATH) # add to path

# Keep track of plugins that have been loaded. Keys are plugin names and values
# are their entry point mappings.
Expand Down

0 comments on commit f71138a

Please sign in to comment.