We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d52d17 commit 4dea527Copy full SHA for 4dea527
adafruit_shell.py
@@ -142,6 +142,21 @@ def reboot():
142
"""
143
os.system("reboot")
144
145
+ @staticmethod
146
+ def getcwd():
147
+ """
148
+ Get the Current Working Directory
149
150
+ return os.getcwd()
151
+
152
+ def chdir(self, directory):
153
154
+ Change directory
155
156
+ if directory[0] != "/" and directory[0] != ".":
157
+ directory = self.getcwd() + "/" + directory
158
+ return os.chdir(directory)
159
160
@staticmethod
161
def is_root():
162
0 commit comments