We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d78fc4 commit 59fc1d5Copy full SHA for 59fc1d5
src/ducktools/env/platform_paths.py
@@ -27,6 +27,7 @@
27
import os
28
import os.path
29
30
+from ._logger import log
31
32
class UnsupportedPlatformError(Exception):
33
pass
@@ -152,6 +153,13 @@ def __init__(self, project_name="ducktools"):
152
153
154
self.project_folder = get_platform_folder(folder_base)
155
156
+ if sys.platform != "win32":
157
+ if os.path.exists(os.path.join(USER_FOLDER, f".{folder_base}")):
158
+ log(
159
+ "Old ducktools-env folder detected, "
160
+ "use the migrate subcommand to copy data to the new path."
161
+ )
162
+
163
self.config_path = os.path.join(
164
get_platform_folder(folder_base, config=True),
165
CONFIG_FILENAME
0 commit comments