1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00

ProgramDir_Common()

This commit is contained in:
Sanek
2025-07-03 21:14:46 +03:00
parent f82f339b65
commit 7dcee94ab0

View File

@@ -272,7 +272,9 @@ func ProgramDir_Common() string {
//Windows
substr = "\\temp\\"
pos1 = strings.Index(sdir, substr)
if pos1 >= 0 {
substr = "\\tmp\\"
pos2 := strings.Index(sdir, substr)
if pos1 >= 0 || pos2 >= 0 {
filename = CurrentFilename()
dir = filepath.Dir(filename)