I need a help on my GitHub repository which needs to work on all systems. But current directory must be given on json file. Mac (with $(pwd)
) and Windows (with %cd%
) uses different values for that and are there any options so that works easily on both systems?
Asked
Active
Viewed 694 times
-1

Uwe Keim
- 39,551
- 56
- 175
- 291

MustafaSalih
- 49
- 1
- 5
-
Isn't `%~dp0` preferable over `%CD%`? ([see also here](http://stackoverflow.com/q/5034076/107625)). – Uwe Keim May 17 '17 at 14:05
1 Answers
0
JSON is a static type file so you cannot have different for both. but what you can do is if you are processing it using something, you can store different keys for each OS and check which OS you are currently on and select your path accordingly.

PyManiac
- 474
- 4
- 12