mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-25 23:02:22 +02:00
ProgramDir_Common()
This commit is contained in:
@@ -272,7 +272,9 @@ func ProgramDir_Common() string {
|
|||||||
//Windows
|
//Windows
|
||||||
substr = "\\temp\\"
|
substr = "\\temp\\"
|
||||||
pos1 = strings.Index(sdir, substr)
|
pos1 = strings.Index(sdir, substr)
|
||||||
if pos1 >= 0 {
|
substr = "\\tmp\\"
|
||||||
|
pos2 := strings.Index(sdir, substr)
|
||||||
|
if pos1 >= 0 || pos2 >= 0 {
|
||||||
filename = CurrentFilename()
|
filename = CurrentFilename()
|
||||||
dir = filepath.Dir(filename)
|
dir = filepath.Dir(filename)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user