forked from intitni/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExport.swift
More file actions
27 lines (23 loc) · 729 Bytes
/
Export.swift
File metadata and controls
27 lines (23 loc) · 729 Bytes
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
import Foundation
let containingBundle: Bundle? = {
if Bundle.main.path(forResource: "site-packages", ofType: nil) != nil {
return Bundle.main
}
let path = Bundle.main.bundleURL
.appendingPathComponent("Contents")
.appendingPathComponent("Applications")
.appendingPathComponent("CopilotForXcodeExtensionService.app").path
return Bundle(path: path)
}()
public let sitePackagePath = containingBundle?.path(
forResource: "site-packages",
ofType: nil
)
public let stdLibPath = containingBundle?.path(
forResource: "python-stdlib",
ofType: nil
)
public let libDynloadPath = containingBundle?.path(
forResource: "python-stdlib/lib-dynload",
ofType: nil
)