Commit 7ba7587 1 parent 070aae5 commit 7ba7587 Copy full SHA for 7ba7587
File tree 3 files changed +5
-20
lines changed
3 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ Import
109
109
│ │ ├── LaneMarking1_Spec.png
110
110
│ │ ├── MapToImport01.fbx
111
111
│ │ └── MapToImport01.xodr
112
- | └ ── MapToImport02
112
+ | ├ ── MapToImport02
113
113
│ │ ├── MapToImport02.fbx
114
114
│ │ └── MapToImport02.xodr
115
115
| ├── AssetsToImport
Original file line number Diff line number Diff line change 18
18
import shutil
19
19
import subprocess
20
20
21
-
22
- @contextmanager
23
- def pushd (directory ):
24
- """Context manager to temporally change working directory."""
25
- cwd = os .getcwd ()
26
- try :
27
- os .chdir (directory )
28
- yield
29
- finally :
30
- os .chdir (cwd )
31
-
32
-
33
21
# Global variables
34
22
IMPORT_SETTING_FILENAME = "importsetting.json"
35
23
SCRIPT_NAME = os .path .basename (__file__ )
36
24
SCRIPT_DIR = os .path .dirname (os .path .realpath (__file__ ))
37
- CARLA_ROOT_PATH = ""
38
- # Temporary get into current script folder to find Carla root path
39
- with pushd (SCRIPT_DIR ):
40
- # Go two directories above the current one
41
- os .chdir (os .path .pardir )
42
- os .chdir (os .path .pardir )
43
- CARLA_ROOT_PATH = os .getcwd ()
25
+ # Go two directories above the current script
26
+ CARLA_ROOT_PATH = os .path .normpath (SCRIPT_DIR + '/../..' )
44
27
45
28
46
29
def get_packages_json_list (folder ):
Original file line number Diff line number Diff line change @@ -99,3 +99,5 @@ for developers:
99
99
100
100
Prettify code files. Run uncrustify on C++ files or AutoPEP8 on Python
101
101
files. To prettify a single file, use: make pretty ARGS=-f/path/to/file.
102
+
103
+
You can’t perform that action at this time.
0 commit comments