summaryrefslogtreecommitdiff
path: root/Utils/PathUtils.swift
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-29 11:28:01 +0000
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-11-29 11:28:01 +0000
commit23fc08c8798d7c325a72fbee4175813efe4fe70f (patch)
tree0521f11441d267e60f7b9aa574c0defd43148b45 /Utils/PathUtils.swift
parent77d1cfc27fb72e442b8d8e5cbe2be143723724e5 (diff)
downloadPrySDR-23fc08c8798d7c325a72fbee4175813efe4fe70f.tar.gz
PrySDR-23fc08c8798d7c325a72fbee4175813efe4fe70f.zip
RtlSdrIQ: can read samples from rtlsdr and dump those to file
Diffstat (limited to 'Utils/PathUtils.swift')
-rw-r--r--Utils/PathUtils.swift13
1 files changed, 13 insertions, 0 deletions
diff --git a/Utils/PathUtils.swift b/Utils/PathUtils.swift
new file mode 100644
index 0000000..a82261a
--- /dev/null
+++ b/Utils/PathUtils.swift
@@ -0,0 +1,13 @@
+//
+// PathUtils.swift
+// PrySDR
+//
+// Created by Jacky Jack on 29/11/2024.
+//
+
+import Foundation
+
+//get current run directory
+func getCurrentExecutableDir() -> String {
+ return Process().currentDirectoryPath
+}