jasinliu commented on code in PR #54:
URL: 
https://github.com/apache/incubator-hugegraph-ai/pull/54#discussion_r1683909476


##########
hugegraph-llm/src/hugegraph_llm/config/config.py:
##########
@@ -20,8 +20,11 @@
 
 from dataclasses import dataclass
 from typing import Literal, Optional
-from pathlib import Path
-from dotenv import dotenv_values
+from dotenv import dotenv_values, set_key
+
+dirname = os.path.dirname
+package_path = dirname(dirname(dirname(dirname(os.path.abspath(__file__)))))
+env_path = os.path.join(package_path, ".env")

Review Comment:
   在pip安装之后 运行代码会在python所在路径下生成.env



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to