-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathASTools.py
More file actions
66 lines (62 loc) · 1.83 KB
/
Copy pathASTools.py
File metadata and controls
66 lines (62 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
'''
* File: ASTools.py
* Copyright (c) 2023 Loupe
* https://loupe.team
*
* This file is part of ASPython, licensed under the MIT License.
'''
"""Backwards-compatibility shim.
Historically all of ASPython lived in this single file. The implementation now lives in the
``aspython`` package; this module re-exports every previously public name and emits a
``DeprecationWarning`` on import. New code should ``import aspython`` (or
``from aspython import Project``) instead.
"""
import warnings as _warnings
from aspython import ( # noqa: F401
ASReturnCodes,
PVIReturnCodeText,
LibExportInfo,
ProjectExportInfo,
Dependency,
BuildConfig,
getASPath,
getASBuildPath,
getPVITransferPath,
getActualPathFromLogicalPath,
getAsPathType,
convertAsPathToWinPath,
convertWinPathToAsPath,
getLibraryPathInPackage,
getLibraryType,
getProgramType,
getPkgType,
xmlAsFile,
Library,
Package,
Task,
SwDeploymentTable,
CpuConfig,
ASProjetGetConfigs,
batchBuildAsProject,
buildASProject,
CreateARSimStructure,
Project,
toDict,
)
_warnings.warn(
"Importing from 'ASTools' is deprecated; use 'aspython' instead "
"(e.g. 'from aspython import Project').",
DeprecationWarning,
stacklevel=2,
)
__all__ = [
"ASReturnCodes", "PVIReturnCodeText",
"LibExportInfo", "ProjectExportInfo", "Dependency", "BuildConfig",
"getASPath", "getASBuildPath", "getPVITransferPath",
"getActualPathFromLogicalPath", "getAsPathType",
"convertAsPathToWinPath", "convertWinPathToAsPath",
"getLibraryPathInPackage", "getLibraryType", "getProgramType", "getPkgType",
"xmlAsFile", "Library", "Package", "Task", "SwDeploymentTable", "CpuConfig",
"ASProjetGetConfigs", "batchBuildAsProject", "buildASProject",
"CreateARSimStructure", "Project", "toDict",
]