python - 如何摆脱 PyCharm 中的库根标记
问题描述
我已经开始使用 Pyramid 应用程序,它需要setup.py
使用,但是一旦我构建了应用程序,我的app
文件夹就被标记为library root。
这不方便,因为当我打开一个文件时,它也在External Libraries下打开它展开它。这可以通过取消选中Always Select Opened File来“修复” ,但我喜欢这个功能,所以我不想禁用它。
我也尝试在设置中调整项目结构,但没有帮助。
如何摆脱这个 _library_root_ 标记?
UPD。内容setup.py
:
setup(
name='app',
version=0.1,
description='Blog with CMS',
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application"
],
keywords="web services",
author='',
author_email='',
url='',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=['cornice', 'waitress'],
entry_points="""\
[paste.app_factory]
main=app:main
""",
paster_plugins=['pyramid']
)
解决方案
推荐阅读
- azure-application-insights - 从 Azure 应用程序洞察中的自定义事件发出警报,但未触发
- azure-data-factory - Azure 数据工厂在单个文件中拆分多个 JSON 对象
- vue.js - 如何在一个 v-text 中使用多个变量
- python - 使用前瞻/后瞻功能查找正则表达式时遇到问题
- python - 如何在熊猫中分组直到不同的值?
- sql - 如何动态更改 sql 查询以添加星期几和所有星期数?
- node.js - 让猫鼬更新数组的所有指定键
- c# - blazor 客户端等待的方法在第一次等待后未执行
- sql - 在每个客户的订单的最后 3 天内发现故障
- sed - 通过ansible替换单引号以加倍